Skip to content

Latest commit

 

History

History
107 lines (59 loc) · 5.44 KB

C++ .md

File metadata and controls

107 lines (59 loc) · 5.44 KB

1. Procedural Programming vs Object Oriented Programming

Procedural Programming Language:

Procedural Oriented Programming is a programming language that follows a step-by-step approach to break down a task into a collection of variables and routines (or subroutines) through a sequence of instructions. Each step is carried out in order in a systematic manner so that a computer can understand what to do.

Object Oriented Programming

Object-oriented Programming is a programming language that uses classes and objects to create models based on the real world environment. In OOPs it makes it easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones.

Difference

Screenshot from 2021-08-14 08-23-10

2. High level, Middle level and Low level languages:

High level langauge

These level languages provide almost everything that the programmer might need to do as already build into the language. Example: Java, Python

Middle level langauge

These languages don’t provide all the built-in functions found in high level languages, but provide all building blocks that we need to produce the result we want. Example: C, C++

Low level langauge

These languages provide nothing other than access to the machine’s basic instruction set. Example: Assembly language.

differences

Screenshot from 2021-08-14 08-36-40

3. OOPS

Screenshot from 2021-08-14 10-28-34

Class and Object

Class

A class is the building block, that leads to Object-Oriented programming. It is a user-defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A C++ class is like a blueprint for an object.

A Class is a user defined data-type which has data members and member functions. Data members are the data variables and member functions are the functions used to manipulate these variables and together these data members and member functions defines the properties and behavior of the objects in a Class.

Object

An Object is an instance of a Class. When a class is defined, no memory is allocated but when it is instantiated (i.e. an object is created) memory is allocated.

Screenshot from 2021-08-14 10-32-57

Screenshot from 2021-08-14 10-34-24

4. Software Development in C++

Screenshot from 2021-08-14 21-33-44

Constants, Variables and Keywords

constants

Screenshot from 2021-08-14 23-40-11

types of constant: Primary and secondary Screenshot from 2021-08-14 23-42-16

Variables

Screenshot from 2021-08-14 23-44-32

Keywords

Screenshot from 2021-08-14 23-45-35

Data Types in C++

Screenshot from 2021-08-15 01-16-33

variable declaration

Screenshot from 2021-08-15 01-17-33

Input Output Instructions

Screenshot from 2021-08-15 01-20-52

Screenshot from 2021-08-15 01-21-26

Screenshot from 2021-08-15 01-23-45 Screenshot from 2021-08-15 01-24-21 Screenshot from 2021-08-15 01-25-38

Header Files

Screenshot from 2021-08-15 01-26-48 Screenshot from 2021-08-15 01-27-26

Reference Variables

Screenshot from 2021-08-15 02-10-04

Screenshot from 2021-08-15 02-03-14 Screenshot from 2021-08-15 02-03-27

Functions