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

How do you create a bulleted list?

561


What is static synchronization?

573


Define how objects are stored in java?

561


Is null function in java?

564


What is heterogeneous in java?

486






Write a program based on Java script program.

643


What is the syntax and characteristics of a lambda expression?

553


How define set in java?

512


What is the exact difference in between unicast and multicast object? Where we will use?

558


What is ctrl m character?

510


Differences between traditional programming language and object oriented programming language?

568


What is re-factoring in software?

574


What will happen if a thrown exception is not handled?

559


Difference between Linked list and Queue?

604


What is enhanced loop in java?

546