Why Abstract Class?

Why Abstract Class?

What is the use of Abstract Class if it has Zero Abstract methods.

View Answers

January 4, 2013 at 10:30 AM

Hi Srinivas,

 Generally in two situations we are declaring a class as abstract.
  1. we have not interested any one to create the object to our class directly.
  2. if the class contain abstract mehtods.

Ads









Related Tutorials/Questions & Answers:
Why Abstract Class?
Why Abstract Class?
Advertisements
why we use abstract class in java?
Why does Java provide both abstract class as well as interface
ModuleNotFoundError: No module named 'classh'
ModuleNotFoundError: No module named 'classh'
abstract class
Abstract and Interface
Abstract class
Abstract class
abstract method
abstract method
Abstract and Interface
abstract class
Abstract class
What is Abstract classes in Java?
abstract class
Abstract class
variables and methods declared in abstract class is abstract or not
code for abstract class
Abstract class,Abstract methods and classes
What is an abstract method?
Java Abstract Class
ModuleNotFoundError: No module named 'Classy'
Interface vs abstract class
What is use of a abstract variable?
What is use of a abstract variable?
ModuleNotFoundError: No module named 'abstract'
ModuleNotFoundError: No module named 'abstract'
abstract methods in java
Why spring?

Ads