Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 26, 2013 01:50 PM by vijay_myl
Feb 25, 2013 04:19 AM|LINK
I got an doubt why dot net framework have an abstract class, beacuse in normal base class we do everything,that we do with abstract class
Then why we need to use seperate abstract class,i knew the difference between these two,my question what special chracteristic its have on abtract class unlike base class features......
Feb 25, 2013 04:23 AM|LINK
Check following links it may help you toa resolve your query
let me know if any query
Feb 25, 2013 04:27 AM|LINK
Dont provide any link to understand about abstract class..My question is we have accomblish everything using normal class then why we have abstract class...Please make it clear with serene points...
Feb 25, 2013 04:28 AM|LINK
Below links may answer your query,
Feb 25, 2013 04:33 AM|LINK
you can learn more about "Interface
the book <<Design Patterns: Elements of Reusable Object-Oriented Software>>
I think using interface is better than abstract class
Feb 25, 2013 04:42 AM|LINK
Hi catherine ..
I need the point where abstract class is have some sepecial cababilty when compare with normal class
Feb 25, 2013 04:54 AM|LINK
The simplest point is you can't ever create an abstract class directly. Example: you have an abstract class called Food, which is a base class for Fruit, which is a base class for classes Apples and Oranges. With this case, the classes Fruit, Apple, and
Oranges can be instantiated but not Food. This is very useful if you want to provide a base class that is only meant to offer base functionality, but is too generic to be called directory.
A really good example of this within the .net framework is the DbDataReader class (http://msdn.microsoft.com/en-us/library/system.data.common.dbdatareader.aspx). It's
abstract, but only provides base functionality for the datareaders that will actually make the calls. You can use the SqlDataReader, or OdbcDataReader to talk to their respective databases, but DbDataReader isn't useful as an object since it doesn't implement
any features for communicating with the specific architectures. Thus, it is a great base class, but has zero use as an object on it's own.
Feb 26, 2013 01:50 PM|LINK
Is there any reply or points..