how to call constructor in abstract class
Answers were Sorted based on User's Feedback
Answer / maniekb
you can't.
constructor is used
to build object,
abstract class cannot
have objects because
is abstract...
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / rizwan
As abstract class is mainly used in inheritance, you can
derive abstract class and then by creating object of derived
class, you can call base class constructor, which is
abstract class. Another way to call constructor of an
abstract class is to make that constructor as static.
| Is This Answer Correct ? | 1 Yes | 0 No |
How to create class level variable that can be assigned value at the time of declaration and in the constructor alone?
How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed
Which Isolation level is helps to read uncommitted data?
How many system controls are available ?
How many navigational features are provided by visual studio.net ide?
What are different authentication types. How do you retrieve user id in case of windows authentication?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
What is the use of runworkasync() methods?
what is the difference between checkbox and radiobutton?
28 Answers College School Exams Tests, TCS, Wipro,
how to call constructor in abstract class
How to split a column header in gridview using c#.net?
Suppose I have two combobox .. And I have some items in both combobox now I need to check the item in both combobox if same item is present in both combobox I need to display that item in message box?