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
Can a loop recorder detect a heart attack?
Why delegate is used in c#?
What is the resgen.exe tool used for?
How do I get deterministic finalization in c#?
Why do we use methods in c#?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
Is namespace a class?
What is a .exe extension files? How is it similar to .dll extension files?
What is exe in c#?
What are winforms in c#?
How can we set the class to be inherited, but prevent the method from being over-ridden?
What is the difference between inheritance and abstract class?
What is singleordefault c#?
What is multicast delegate explain with example?
How to properly clean up excel interop objects?