Abstract class

Abstract class Abstract class in Java can be created using “abstract” keyword. If we make any class as abstract then it can’t be instantiated which means we are not able to create the object of abstract class. Inside Abstract class, we can declare abstract methods as well as concrete methods So using abstract class, we […]

Share this article on

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
< Previous Next >