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



When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choi..

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

When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choi..

Answer / 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

More C Sharp Interview Questions

What is inner class in c#?

0 Answers  


Why should you override the tostring() method?

0 Answers  


What is the difference between webgarden and webfarm?

1 Answers   Mphasis,


Explain About Global.asax

0 Answers   Keane India Ltd,


What is int16?

0 Answers  






Can a static class have a constructor c#?

0 Answers  


What is a Command Object in C#?

0 Answers   B-Ways TecnoSoft,


How the versioning applies to Assemblies or can you explain version numbers?

0 Answers   CitiusTech,


what is scope of a protected internal member variable of a c# class

0 Answers   Cognizant,


What is use of a HashTable in .NET?

0 Answers   Arigo Infotech,


Do while loops yes or no c#?

0 Answers  


What is the difference between struct and class in c#?

0 Answers  


Categories