oops
TRANSCRIPT
Basic concepts of OOP
R.Prabhu132912
05/01/23 Prabhu Mike 1
• 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
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
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
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
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
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
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
THANK YOU…
05/01/23 Prabhu Mike 9