Oops Shortened
Oops Shortened
■ The object is Real-world entities i.e Pen, Paper, computer, watch, fan, etc.
■ Object-Oriented Programming is a methodology to implement real-world
entities by designing a program using classes and objects.
■ OOPS(Object-Oriented programming System) provides a paradigm to simplifies
the development and maintenance of a Software.
Main concepts of OOPS
• Object
• Class
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
■ Dynamic binding
■ Message passing
object
■ Inheritance is a process where child class acquires all the properties and behaviors
of the parent class.
■ Inheritance is used when one object is based on another object.
■ Here parent class also called a superclass and child class called as a subclass.
■ For Example, Person is Parent class and Employee is a subclass of Person. which
acquired all the properties and behavior of Person class.
JAVA does not support multiple inheritance through classes.
■ It is implemented with the help of interfaces
POLYMORPHISM