Abstraction:
Abstraction is nothing but a exposing only important feature without inside functionality.
Encapsulation:
Encapsulation is a system utilized for concealing the properties and practices of an object
Inheritance:
Inheritance is one of the excellent assert of Object-Oriented Programming. It permits a class to utilize the methods and properties for another class.
The determined class acquires the behavior of the base class. The determined class is likewise called subclass and the base class is otherwise called super-class.
The determined class can include its own particular extra factors and techniques. These extra factors and strategies separates the derived class from the base class.
And Inheritance is a run time system. A super-class can have any number of subclasses. In any case, a subclass can have just a single super class. This is on the grounds that Java does not bolster numerous legacy.
The superclass and subclass have "is-a" connection between them. The following is the syntax.
{
//
}
Polymorphism:
Polymorphism in Java is an idea by which we can play out a solitary
There are two sorts of polymorphism in Java as follows.
- Compile time polymorphism
- Runtime polymorphism
By using two strategies we can perform polymorphism in Java there are over-loading and over-riding. On the off chance that you over-burden static technique in Java, it is the case of compile time polymorphism.
No comments:
Post a Comment