Oops
Oops
What is object.?
Object is a run time entity. With the help of object we can access the public
data member and method of the class.
What is abstraction.?
Abstraction in Java is a process of hiding the implementation details from the
user and showing only the functionality to the user.
abstraction is achieved by interfaces and abstract classes. We can achieve
100% abstraction using interfaces.
What is Encapsulation.?
Encapsulation is a process of wrapping up data and methods within a single
unit(class) ) is called Encapsulation.
The objects are encapsulated that helps The object need not to abstract that
to perform abstraction. result in encapsulation.
What is polymorphism.?
Polymorphism is considered one of the important features of Object-Oriented
Programming.
Polymorphism allows us to perform a single action in different ways.
In other words, polymorphism allows you to define one interface and have
multiple implementations.
Compile-time Polymorphism
Runtime Polymorphism
Types of Inheritance
Java supports the following four types of inheritance:
o Single Inheritance
o Multi-level Inheritance
o Hierarchical Inheritance
o Hybrid Inheritance