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
Does c# support a variable number of arguments?
What does dbml mean in texting?
What are the Types of assemblies that can be created in dotnet
Explain the difference between class and interface in .net?
Can we inherit static class in c#?
What is verbatim string?
Is void a class?
What is int tryparse in c#?
Can a static class have a constructor c#?
Define mutex in C#?
How do you declare a method in c#?
What does clr stand for?
What is namespace give the example?
What is ienumerable and iqueryable?
What is the value which is accepted by all data types ?