Category Archives

Inheritance and constructors in Java

In Java, constructor of base class with no argument gets automatically called in derived class constructor. For example, output...

Inheritance and constructors in Java

In Java, constructor of base class with no argument gets automatically called in derived class constructor. For example, output...

Java and Multiple Inheritance

Multiple Inheritance is a feature of object oriented concept, where a class can inherit properties of more than one...

Java and Multiple Inheritance

Multiple Inheritance is a feature of object oriented concept, where a class can inherit properties of more than one...

The Initializer Block in Java

Initializer block contains the code that is always executed whenever an instance is created. It is used to declare/initialize...

The Initializer Block in Java

Initializer block contains the code that is always executed whenever an instance is created. It is used to declare/initialize...