Professional Documents
Culture Documents
C++ Day1
C++ Day1
```````````````````````````````
All the programming language are divided into object based and object
oriented.
member data is nothing but declaration part of the variable int eno,char
ename[20];
member function declared in without return type
sum()----->normal function
void sum()
void means without return type.
object:-
object means variables
or instance of the class is called object
inheritance:-
inheritance is the family model or hierarchial form inheritance is
the process of creating new class from the existing base class new
classis called derived class already existing class is called base class.
for example:-
parent(base class or super class)
I.Type of inheriatance:-
1.single inheritance
2.multiple inheritance
3.multi path
4.multi level
5.hybrid
6.hiearchial
Polymorphism:-
poly means many morphism means forms.
to carry out the different processing steps by function having same name.
shape(base class)
draw()
circle triangle rectangle
draw(int a) draw(int a, int b) draw()
overloading:-
overloading means different type of argument or different no of argument.
for example
void sum()
void sum(int a,int b,int( ))
data encapsulation:-
information hiding is known as data encapsulation or data hiding or
data abstraction
applications of oops:-
1.object oriented data base
2.designing suport system
3.cad/cam applications
4.multimedia applications
5.office automations
6.gul (java,vb,c++)*/