Answer Posted / harshavardhan
In Inheritance , class become more general and more
abstract.Ancestor classes are more general, i.e more basis
for other classes.Abstract classes can have fields and
concrete methods.Methods are declared not defined so we can
not create objects. but we can create object variables of an
abstract class. but such variable must refer to an object of
a nonabstract subclass.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
what do you mean by classloader in java?
What is meant by binding in rmi?
Can we sort array in java?
Why is it important to initialize a variable?
Similarity and difference between static block and static method ?
What are the 2 types of java programs?
what is the difference between future and callable interface in java?
Why do we override tostring method in java?
Can static method access instance variables ?
What is meant by vector class, dictionary class, hash table class, and property class?
What is a numeric digit?
Can we define a package statement after the import statement in java?
What is a variable and constant?
Can a vector contain heterogenous objects?