Encapsulation

Encapsulation Process of binding object state(fields) and behaviors(methods) together in a single entity called “Class”. Encapsulation wraps both fields and methods in a class, It will be secured from the outside access. We can restrict the access to the members of a class using access modifiers along with encapsulation. When we create a class in […]

Share this article on

Inheritance in Java

Inheritance is one of the most important OOPS concepts where one class inherits or acquires the properties of another class. The class from which the properties are inherited is called Super class or Parent class The class which inherit the properties is called Subclass or Child class. We use “extends” keyword to achieve the same. […]

Share this article on
< Previous Next >