14

Oops

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Oops
Page 2: Oops

OOPs? Concepts in OOPs? Objects & classes Data abstraction and Encapsulation Inheritance and Its types? Polymorphism and its types? Constructors and Destructors Benefits and application

Page 3: Oops

It is an approach that provides a way of

modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand.

Page 4: Oops

Objects and classes Data Abstraction Data Encapsulation Inheritance polymorphism

Page 5: Oops

Objects : Run-time entities The data of an object can be accessed

only by methods associated with that objects.

Classes : User-defined data type. Class basically implements the planning

& it is nothing but alternative of structure.

Page 6: Oops

Abstraction : It refers to an act of representing

essential features without including the background details.

Classes use the concept of abstraction Data hidingEncapsulation : It is the most striking features of class It provides interface between object’s

data and program

Page 7: Oops

It provides the idea of Reusability It is a process by which objects of one

class acquire the properties of objects of another class.

It has super class and sub classes

Page 8: Oops

Single Inheritance Multilevel Inheritance Hierarchical Inheritance Multiple Inheritance Hybrid Inheritance

Page 9: Oops
Page 10: Oops

It is an ability to take more than one form.

Behaviour is depends upon the types of data used in the operation.

Different internal structures to share the same external interface.

Page 11: Oops
Page 12: Oops

Constructor : It enables an objects to initialize itself

when it is created. Do not specify return type.Destructor : Mostly in virtual form.

Page 13: Oops

To built secure program by data hiding. Eliminating redundant code and extend

use of existing classes. It is easy to partition the work in a project

based on objects. To have multiple objects to coexist

without any interference.

Page 14: Oops

Object-oriented database Real-time systems AI and expert systems Neural networks and parallel

programming.