When do you absolutely have to declare a class as abstract
(as opposed to free-willed educated choice or decision based
on UML diagram)?
Answers were Sorted based on User's Feedback
Answer / umesh
When at least one of the methods in the class is abstract.
When the class itself is inherited from an abstract class,
but not all base abstract methods have been over-ridden.
Is This Answer Correct ? | 18 Yes | 2 No |
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 |
What is stack and heap?
What do you know about Translate Accelerator?
How many digits are in an integer?
Distinguish between array and arraylist in c#?
What are the advantages of properties in c#?
What is orm in c#?
What Is The Smallest Unit Of Execution In .net?
How to move to a state-related codebase?
What is dependency injection in simple words?
What is boolean conditions in c#?
What is the use of console readkey in c#?
What does Dispose method do with the connection object?