News

Animal a= new Labrador(); // created object of Labrador class and assigned it to Animal interface a.sound(); // called sound method of Animal interface a.eat(); // called eat method of Animal ...
An abstract class is a class that cannot be instantiated but can have abstract methods (without implementation) and concrete methods (with implementation).