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

What is a superclass?

931


What is not object oriented programming?

513


What is the intersection and union methods?

555


What is instance means in java?

566


Who developed java?

576






What are the access modifiers in java?

591


What is hash code collision?

597


Explain a situation where finally block will not be executed?

580


What are the features of java?

537


What is the difference between the paint() and repaint() methods in java programming?

637


Can I extend singleton class in java?

635


Can you declare an interface method static?

588


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

539


Differentiate between a constructor and a method? Can we mark constructors final?

681


What is operator overloading. Is it is supported in java?

526