Java Tutorial

Abstract class

In design,  want the base class to present only an interface for its derived classes. This means,  don’t want anyone to actually instantiate an object of the base class.  Only want to upcast to it ...
Java Tutorial

Interfaces

Interface can only declare a method or function but not provide the implementation. The class, which is implementing the interface, should provide the actual implementation. The interface is a very useful ...
Powered by WordPress · Designed by Theme Junkie
You might also likeclose