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
What is difference between equals and hashcode method?
What is the history of java?
What is the difference between heap and stack memory?
Difference between association, composition and aggregation?
What is scope & storage allocation of global and extern variables? Explain with an example
Why does it take so much time to access an applet having swing components the first time?
Where is jre installed?
What's the base class in java from which all classes are derived?
What are the advantages of java over cpp?
In how many ways we can do exception handling in java?
What is the role of the java.rmi.naming class?
What is called module?
Define "Access specifiers" in java.
What does += mean coding?
Explain a few methods of overloading best practices in java?