Abstract Classes

What is the main use of abstract classes?

Questions by mvswapna   answers by mvswapna

Showing Answers 1 - 6 of 6 Answers

saurabhfri

  • Mar 25th, 2010
 

If you are coding for 100 classes in which some function (name or functionality, may be both) will be same then you have two option first is to code same function 100 times in different 100 class  second is make a comman class (abstract class) which will be extend by all other 100 classes....

We cannot make the object of this class because it is not capable or does not have all the properties to make an object.

nmohan

  • Jun 21st, 2010
 

If you are coding for 100 classes in which some function (name or functionality may be both) will be same then you have two option first is to code same function 100 times in different 100 class second is make a comman class (abstract class) which will be extend by all other 100 classes....

We cannot make the object of this class because it is not capable or does not have all the properties to make an object.

I could not understand, because its somewat same to inheitance.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions