characteristics of oop
DESCRIPTION
TRANSCRIPT
![Page 1: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/1.jpg)
OOP (Object Oriented Programming)
A Presentation By:Rasim Izhar AliBECS/S13/0109
![Page 2: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/2.jpg)
What is OOP?Object Oriented Programming (OOP) is a programming technique in which programs are written on the basis of objects.
Examples: C++ PHP Java Objective-C
![Page 3: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/3.jpg)
Classes And Objects
![Page 4: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/4.jpg)
Classes(Classification Of Objects)
A class is a group of objects with same attributes and behavior. The characteristics of a class
are :
A name Attributes Behaviour
![Page 5: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/5.jpg)
What is Object?• An object represents an entity in the real
world such as a person , thing or concept etc.• An object is identified by its name. All object have these characteristics : Identity State Behaviour
![Page 6: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/6.jpg)
ReusabilityExtensibility Decomposability Compos ability Understandability Security
Benefits Of OOP
![Page 7: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/7.jpg)
Characteristics Of OOP
![Page 8: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/8.jpg)
Characteristics Of OOP
Inheritance Data Abstraction Data Encapsulation Polymorphism
![Page 9: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/9.jpg)
Inheritance
![Page 10: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/10.jpg)
InheritanceA programming technique that is used to reuse an existing class to build a new classis known as inheritance.
![Page 11: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/11.jpg)
Categories Of Inheritance1) Single Inheritance:
In Single Inheritance, the child class inherits all data members and member functions of the base class.
2) Multiple Inheritance:In Multiple Inheritance, the child class inherits all data members and member function of base class.
![Page 12: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/12.jpg)
Types Of Inheritance1) Public Inheritance:
In public inheritance, the access status of parent class members in the derived class remains the same.
• The public members of parent class become public members of derived class.
• The private members of parent class become private members of derived class.
• The protected members of parent class become protected members of derived class.
![Page 13: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/13.jpg)
2) Protected Inheritance:In protected inheritance, the access status of parent class members in derived class is restricted.
• The public members of parent class become protected members of derived class.
• The protected members of parent class become protected members of derived class.
• The private members of parent class become private members of derived class.
![Page 14: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/14.jpg)
3) Private Inheritance:In private inheritance, the access status of parent class members in the derived class is restricted.
• The private members of parent class become the private members of derived class.
• The public members of parent class become the private members of derived class.
• The protected members of parent class become the private members of derived class.
![Page 15: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/15.jpg)
Data Abstraction
![Page 16: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/16.jpg)
Data Abstraction Data abstraction or information hiding refers to providing only essential information to the outside world and hiding their background details.
![Page 17: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/17.jpg)
Advantages Of Data Abstraction
Simplification of software development. Testing and debugging. Reusability. Security. Modifications to the representation of a data
type.
![Page 18: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/18.jpg)
Data Encapsulation
![Page 19: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/19.jpg)
Data EncapsulationData Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data and that keep both safe from outside interference and misuse.
![Page 20: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/20.jpg)
Polymorphism
![Page 21: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/21.jpg)
What is Polymorphism?The word polymorphism is a combination of two words poly and morphism. Poly means many and morphism means form. In object-oriented programming, polymorphism is the ability of objects of different types to respond to functions of the same name. The user does not have to know the exact type of the object in advance. The behavior of the object can be implemented at run time.
![Page 22: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/22.jpg)
Types Of Polymorphism
Virtual functions. Operator overloading. Function overloading.
![Page 23: Characteristics of oop](https://reader033.vdocuments.net/reader033/viewer/2022061220/54bc3b0c4a79593f4a8b4588/html5/thumbnails/23.jpg)
Thank you