Object-Oriented Programming (OOPS) in C++

deepu1711 1,348 views 10 slides Sep 22, 2013
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

No description available for this slideshow.


Slide Content

OOPS [ object oriented programming] GUIDEDED BY:- RESPECTED DEEPIKA MAM SUBMITTED BY:- DEEPAK KUMAR SOLANKI BRANCH:- Mechanical Engg . CLASS:- 2 nd year, 3 rd sem.

WHAT IS OOPS ?? It is object oriented programming in which programming is oriented by the object. Basic idea behind oops is that computer program may be seen as collection of individual units or objects.

BASIC CONCEPTS OF OOPS 1. Objects 2. Class 3. Data abstraction 4. Encapsulation 5. Inheritance 6. Polymorphism

CLASS It is termed as a basic unit of encapsulation. A class is a grouping of objects that have the same properties, common behaviour and common relationships. A class is a blue print or prototype from which objects are created. OR

OBJECT A variable type of class is called an object, which have a physical existance . OR Object is basically a class variable that does the implementation of the plan inside the class. EX: VEHICLE is a CLASS. CAR, BIKE, BYCYCLE, BUS, TRUCK are the OBJECTS which are inside the class.

DATA ABSTRUCTION It is a mechanism to represent only essential features which are of only use of significance and hides all the unimportant details.

ENCAPSULATION It is the process that allow selective hiding of properties and methods in a class. OR Mechanism that binds both function and data in one compact form called encapsulation.

INHERITANCE DERIVED/NEW CLASS can inherit some of properties of the BASE/SUPER/PARENT CLASS . It is of five types:- 1. SINGLE INHERITANCE 2. MULTIPLE INHERITANCE 3. MULTILEVEL INHERITANCE 4. HIERARCHICAL INHERITANCE 5. HYBRID INHERITANCE

POLYMORPHISM It is a greek word which is made by two words:- POLY(MANY) AND MORPHISM(FORMS). Polymorphism means same things in different form. It is the main pillar of oop . It is of two types:- 1. OPERATOR OVERLOADING 2. FUNCTION OVERLOADING

THANK YOU