What is an abstract class?

Answer Posted / prasviji143@gmail.com

abstract class is an incomplete class which contains incomplete and complete methods.

incomplete methods contains only the declaration and ended with semicolon (; )

To access the incomplete methods we need create a concrete class with the help of extends keyword.

In concrete class there will be method definitions for incomplete methods.

abstract class is known as superclass and concrete class as subclass.


In concrete class we can create the object and we can call the incomplete methods and execute the program.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by stack and queue?

676


How many ways can we create singleton class?

610


What are mutable classes?

604


Explain about transient variables in java?

735


What are instance variables?

707






Which sorting is best in java?

640


How the metacharacters are different from the ordinary characters?

647


What are the benefits of operations in java?

589


Explain what is Marker interface?

699


What is passing parameters in java?

606


How do you access command-line arguments within the code?

658


Which method cannot be overridden in java?

688


What is the difference between throw and throws in java?

643


What is meant by object?

660


What is thread count in java?

629