What isan abstract class and when do you use it?
Answer Posted / hrpynux@gmail.com
An abstract class allows you to create functionality that subclasses can implement or override. An interface only allows you to define functionality, not implement it. And whereas a class can extend only one abstract class, it can take advantage of multiple interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a java program have 2 main methods?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
How do you do a line break in java?
What is flag in python?
Implement two stacks using a single array.
what is thread? What are the high-level thread states? : Java thread
What interface is extended by awt event listeners?
Tell us something about an iterator.
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What are the advantages of java?
What are access specifiers available in java?
What is a priority queue java?
Can we create constructor in abstract class ?
What are the object and class classes used for?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?