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
Give an example of removing an element from the queue?
Why attributes are used in c#?
What is the use of nullable types in c#?
How can we sort an array in c#?
Which namespaces are necessary to create a localized application?
What is sorted list in c#?
What is private and shared assembly?
Why do we need to serialize data?
List down the reason behind the usage of c# language.
Why is .net so popular?
How many constructor can a class have?
How we can create an array with non-default values?
What is the difference between int16 and int32 in c#?
What does immutable mean in c#?
What do you mean by saying a "class is a reference type"?