#programming-blogs
Read more stories on Hashnode
Articles with this tag
If a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship. Aggregation in Java is a mechanism of...
An abstract class in Java is a special kind of class that cannot be instantiated on its own. It is used as a base class or blueprint for creating...
Final is a Non-acess modifier.The final keyword in Java can be used for different purposes. Most commonly, it is used to create immutable objects....
If subclass (child class) has the same method as declared in the parent class, it is known as method overriding. Usage of Method Overriding Method...
This keyword is a reference variable that refer to a current Object. This can be used to refer current class instance variable. If we don't use this...
It is block of code that initializes the newly created Object. It has same name as its Class. Constructor has no return type. The constructor cannot...