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
Is singleton set an interval?
Which variable is the independent variable?
What are different types of states exist for a thread?
Does the order of public and static declaration matter in main method?
Is constructor inherited?
How many types of gc are there in java?
What is local variable and instance variable?
Does importing a package imports its sub-packages as well in java?
Can java list be null?
What do you mean by JVM?
What is mvc in java?
What is nullpointerexception in java?
What are the different types of inner classes?
what is anonymous class in java?
what is abstract class in Java?