oops

9
Basic concepts of OOP R.Prabhu 132912 08/30/22 Prabhu Mike 1

Upload: prabhu-r

Post on 14-Jan-2017

143 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Oops

Basic concepts of OOP

R.Prabhu132912

05/01/23 Prabhu Mike 1

Page 2: Oops

• It is necessary to understand some concept used extensively in oop. These include:

• Object• Classes• Data abstraction and encapsulation• Polymorphism• Dynamic binding• Message passing

05/01/23 Prabhu Mike 2

Page 3: Oops

Objects:

• In OOP, a problem is considered as a collection of a number of entities called objects. Objects are instances of classes.

Classes: • It is user defined data type. It consists of

variable & functions

05/01/23 Prabhu Mike 3

Page 4: Oops

Data abstraction and Encapsulation• The wrapping up of data and functions into a

single unit (called class) is known as encapsulation. Data encapsulation is the most striking features of a class.

• Abstraction refers to the act of representing essential features without including the background details or explanations.

05/01/23 Prabhu Mike 4

Page 5: Oops

Inheritance:

• Inheritance is the process by which objects of one class acquire properties of objects of another class

Polymorphism:• Polymorphism means one name, multiple

forms. It allows us to have more then one function with the same name in a program.

05/01/23 Prabhu Mike 5

Page 6: Oops

Dynamic binding:

• Binding refers to the linking of a procedure call to the code to be executed in response to the call.

• Dynamic binding also known as late binding• It associated with polymorphism and

inheritance.

05/01/23 Prabhu Mike 6

Page 7: Oops

Benefits of OOP

• It is possible to have multiple instances of an object to co-exist without any interference.

• It is possible to map objects in the problem domain to those in the program.

• It is easy to partition the work in a project based on objects.

• Software complexity can be easily managed.

05/01/23 Prabhu Mike 7

Page 8: Oops

Applications of OOP

• Real-time systems• Simulation and modeling• Object-oriented database• Hypertext, hypermedia and expertext• Expert systems• Neural networks and parallel programming• Decision support and office automation systems• CIM/CAM/CAD systems

05/01/23 Prabhu Mike 8

Page 9: Oops

THANK YOU…

05/01/23 Prabhu Mike 9