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
What is dynamic object in c#?
What is the use of nullable types in c#?
Is namespace a class?
What is a console device?
What is the difference between protected and private?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
How many constructors can a class have c#?
What is namespace explain with example?
without modifying source code if we compile again, will it be generated MSIL again?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
Could you explain the difference between func vs action vs predicate?
What are custom exceptions? Why do we need them?
What is the full form of GAC? Explain its uses?
Can a class be protected in c#?
I want to print "Hello" even before main() is executed. How will you achieve that?