Latest Answer : Interface is a pure(100 %) abstract class. Then why abstract class seperatly? It's the design criteria,For example we are writing one class that has methods implemented which are common to other classes .And some methods are different for ...
Latest Answer : abstract class nnothing but a class which can declear a data but in abclass the data canot shown it internaly working. ...
Latest Answer : Interface: In interface just signature of the methods are defined(means abstract meathod). there is no a single method which has body.e.g. void add();Abstract class: In a abstract class some method are abstract while some are concrete methods. we use ...
Latest Answer : Abstract class contains both concrete methods and also abstract methods,whereas interface contains only abstract methods ...
Latest Answer : Interface - has only declarations, no objects are created.abstract class - sub class must extend this, objets can be created ...
Latest Answer : Hi, No,we can't declare both final and abstract for the same method,B'coz if you declare method as abstract means we are declaring a method not actual a concrete method so we need to override in the subclass. If you declare the same method as ...
Latest Answer : When To use Interface: An interface allows somebody to start from scratch to implement your interface(or) implement your interface in some other code whose original or primary purpose was quite different from your interface. To them, your interface is ...
Latest Answer : Abstract calss may have both concrete methods(abstract method) and non abstract methods. But it should contain atleast one abstract methods.All the methods in interface are abstract method by defaultly.non abstract methods are allowed. ...
Latest Answer : A programmer writes an abstract class with common features and methods which will be implemented differently in different subclasses.The same programmer will provide subclasses to the abstract class.A programmer writes an interface when all the features ...