Interface and Abstract Classes
Interface and Abstract Classes Interfaces: Class - Blue print of an entity. Class consist of : Methods(Behaviour) Attributes(entities/elements/variables) Defining a method means - Just providing method signature. <access_modifier> <return_datatype> <method_name>(<list of parameters with it's respective datatype); In this case you are not going to have any body of the method. Interface can have more than one methods definitions(abstract methods). Interfaces are blue print of behaviours(methods). It means set of methods which can be used for classification. It will help corporate to enforce template for coding to their developers. implements keyword will force your class to implement the methods which interface in it else your class will become an abstract class and then you need to extend that class with other one to implement the missed method to make your ultimate inheriting child class a runnable class(absolute class). Purpose of inheritance is code reusabil...