which access modifier we can declare the abstract class?
Answer Posted / vindhya
the access modifier of the abstract method should be same in
both the abstract class and its derived class. If you
declare an abstract method as protected, it should be
protected in its derived class. Otherwise, the compiler will
raise an error
and an abstract class can't be private..becz private members
can't be inherit.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can I call a virtual method from a constructor/destructor?
What is a class c#?
What is parameter c#?
What are partial classes and use of partial classes?
What is new method in c#?
Why should you override the tostring() method?
What is AutoMapper in C#?
What is the purpose of the integer parse method the decimal parse method?
What is difference between private and static constructor?
What is the meaning of 0 in c#?
How can we set the class to be inherited, but prevent the method from being over-ridden?
Explain manifest in c#.
What is ac callback?
Explanation on Generic?
What is the difference between null and string empty in c#?