Concepts of OOPS in CPP(C++)

making any application
->   objects
->  commands
->  compiler
objects:
These are real world machines or softwares. which contains their own properties and functionalities.

These features are mixed together into one application.

To  make an application we use Programming Structures and other logics.

Programming in C++ is similar to java but in java, the program is total or completely Object oriented.
where as the apps which are made in C++ are partial object based.

Object Based Programming Structure.
This is a partial object oriented concept where we can design an application using real world objects but we cannot control it completely using the code.

Concepts of OOPS:
1. Class
2. Object
3. Encapsulation
4. Abstraction
5. Polymorphism
6. Inheritance

In programming, every object is reffered as an instance of the class, which means a part of the class itself. So any feature which the objects contains is given from a class. 

Class contains data members and member function for its objects.
Every object of the class will use some features but not everything available in the class. This is shown in

OOA object oriented Analysis

Then based on the analysis we design the application

OOD object Oriented Design

Then based on the app design, we write the code

OOP Object Oriented Programming


Structure and Tokens:
these are tools to make an application in the programming.
Structure of C++ programming:

header file
class <ClassName>
{
Data members --> class variables
member functions --> class functions
};
void main()
{
<ClassName> instance(or object names);
instance.members;
statements;
}
---------------------------------------------------------------------
#include<iostream.h>
#include<conio.h>
class DemoClass
{
int a,b;
void display()
{
a=1;
b=2;
cout<<a+b;
}
void display2()
{
a=10;
b=20;
cout<<a*b;
}
};
void main()
{
clrscr();
DemoClass d;
d.display();
d.display2();
getch();
}