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


Please Help Members By Posting Answers For Below Questions

Is singleton set an interval?

535


Which variable is the independent variable?

544


What are different types of states exist for a thread?

553


Does the order of public and static declaration matter in main method?

621


Is constructor inherited?

536






How many types of gc are there in java?

572


What is local variable and instance variable?

613


Does importing a package imports its sub-packages as well in java?

554


Can java list be null?

558


What do you mean by JVM?

593


What is mvc in java?

560


What is nullpointerexception in java?

528


What are the different types of inner classes?

536


what is anonymous class in java?

552


what is abstract class in Java?

652