0% found this document useful (0 votes)
25 views3 pages

C++ Day1

OOPS stands for object oriented programming. Some key characteristics of OOPS include classes and objects, inheritance, polymorphism, encapsulation, and overloading. A class contains member data and functions, while an object is an instance of a class. Inheritance allows new classes to inherit attributes and behaviors from existing parent classes in a hierarchical manner. Polymorphism means that functions can have the same name but different implementations depending on the type of object. Encapsulation hides internal details and behaviors within a class.

Uploaded by

Dinesh Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

C++ Day1

OOPS stands for object oriented programming. Some key characteristics of OOPS include classes and objects, inheritance, polymorphism, encapsulation, and overloading. A class contains member data and functions, while an object is an instance of a class. Inheritance allows new classes to inherit attributes and behaviors from existing parent classes in a hierarchical manner. Polymorphism means that functions can have the same name but different implementations depending on the type of object. Encapsulation hides internal details and behaviors within a class.

Uploaded by

Dinesh Babu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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