Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Introduction to OOPS

```````````````````````````````

oops stands for object oriented programming language.


c++ is the oops language.

All the programming language are divided into object based and object
oriented.

nick name of oops is artifical intelligence

characterisitic features of oops:-


1.class & object
2.inheritance
3.overloading
4.data encapsulation
5.polymorphism

class & object:-


class contains member data & member function class is the keyword.
class is the heterogenous data items.

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)

child1 child2 (derived class or sub class)

for example 2:-


vehicle
auto bus scooter
main advantanges of inheritance

1.resuability of the code.

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()

two type of polymorphism:-


1.compile time poly
2.run time poly

two type of binding


1.early binding
2.late binding

overloading:-
overloading means different type of argument or different no of argument.

two type of overloading:-


1.fucntion overloading
2.operator overloading

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++)*/

You might also like