Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  

Why Abstract Class?



Share on Google+Share on Google+

srinivas reddy
Why Abstract Class?
1 Answer(s)      4 years and 6 months ago
Posted in : Java Beginners

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.