What is an abstract class? Ans. Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie. you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such. A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated. - Study24x7
Social learning Network
10 Nov 2023 10:46 AM study24x7 study24x7

What is an abstract class? Ans. Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie. you may not call its constructor), abstract class may contain static data. Any class with an abstract method...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles