Category: OOPS

multiple inheritance using interface 1

Interface in Java

This post explains Interface in java. What is Interface? Interface is a blue print of class. Unlike class it contains only public & abstract methods and public, static & final...

loose coupling 2

Loose coupling example using Interface

Loose coupling example using Interface Loose coupling has advantage over tight coupling. Lets understand it with example In below example we have two classes A and B Class B implements...

Multiple Inheritance In Java 0

Multiple Inheritance In Java

Multiple Inheritance in Java has always been a topic of debate among people. Based on the Oracle’s Java tutorial (http://docs.oracle.com/javase/tutorial/java/concepts/inheritance.html) inheritance is a concept reserved to classes only, not Interfaces,...

Method Overloading v/s Method Overriding – Java 0

Method Overloading v/s Method Overriding – Java

The capability of more than one objects to respond to the same message in a different way can be broadly categorized into two types: 1. Method Overloading 2. Method Overriding...

Inheritance 0

Inheritance

Q: What is inheritance in java? Q: Different level of inheritance in java? Q: How to implement inheritance in java? Q: What is hybrid inheritance? Q: What is multiple inheritance?...