RE: what is difference between instance and object.?
I think that abstract classes too support run-time polymorphism for the methods that are abstract within them. For such a case, the abstract class and interface provide similar functionality.
RE: what is difference between instance and object.?
if i declare any fields in the classi.e not in any methods...they r given a default value,i.e for int its zero(0)..these are instance fields..........an object is an instance of a classi.e the object created is of the class type.
well, in an interface you can only define the prototype of the methods,it cant contain any implimentations,while in an abstract class there can be absract methods and also implimentations of the method which are not abstract
RE: what is difference between instance and object.?
The main difference between abstract class and interface is,
1. Abstract class has the constructor, but interface doesn't have.
2. Main reason is abstract class contain the instance variable, that why it has
the constructor, where as interface has only constants (final variables and
ABSTRACT METHODS).
3. A class which can implement the interface, is not implement all methods which
are declared in interface , such class is declared as abstract class. that mean
abstract class is a subtype of an interface.
This is my conclusion. If you have an queries let me know.