Hibernate Tutorial

(Brent) #1

TUTORIALS POINT


This concept allows you to reuse the fields and methods of the existing class without having to rewrite the code in a
new class. In this scenario, the existing class is called the superclass and the derived class is called the subclass.


Interfaces:


In Java language, an interface can be defined as a contract between objects on how to communicate with each
other. Interfaces play a vital role when it comes to the concept of inheritance.


An interface defines the methods, a deriving class(subclass) should use. But the implementation of the methods is
totally up to the subclass.


What is Next?


The next section explains about Objects and classes in Java programming. At the end of the session, you will be
able to get a clear picture as to what are objects and what are classes in Java.

Free download pdf