When do you absolutely have to declare a class as abstract
(as opposed to free-willed educated choice or decision based
on UML diagram)?

Answer Posted / kiran

Following are features of a abstract class :-
√ You can not create a object of abstract class
* How would you describe yourself ?
98
√ Abstract class is designed to act as a base class (to be
inherited by other classes).
Abstract class is a design concept in program development
and provides a
base upon which other classes are built.
√ Abstract classes are similar to interfaces. After
declaring an abstract class, it
cannot be instantiated on it's own, it must be inherited.
√ In VB.NET abstract classes are created
using “MustInherit” keyword.In C#
we have “Abstract” keyword.
√ Abstract classes can have implementation or pure abstract
methods which
should be implemented in the child class.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I download a program to my desktop?

461


what is the syntax to inherit from a class in c#?

544


What is asax file in c#?

568


Is there any sample c# code for simple threading?

561


What are the advantages of clr procedure over t-sql procedure?

588






What are the ways in which client can create object on server in cao model?

505


Can you use foreach iteration on arrays in c#?

600


Can we inherit a private class in c#?

460


What is hierarchical inheritance in c#?

483


What is a string c#?

485


What is iqueryable in c#?

490


When is a class declared as a class abstract?

582


What are satellite assemblies? How will you get the different language strings?

481


Is array thread safe c#?

480


What are the Types of assemblies that can be created in dotnet

656