which access modifier we can declare the abstract class?
Answers were Sorted based on User's Feedback
Answer / anish
Abstact class cannot be declared private, as private class cannot be inherited. However it can be declared as public, protected.
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / kapil jain
public and internal are those access modifiers which we can
use to declare the abstract class.
| Is This Answer Correct ? | 5 Yes | 1 No |
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 |
Answer / imatoria
Unlike Interface, Abstract class can have private, public
modifiers atleast, but not protected. I am not sure about
internal and protected internal modifiers
| Is This Answer Correct ? | 7 Yes | 6 No |
Answer / guest
By using override access modifier we can declare abstract class
| Is This Answer Correct ? | 3 Yes | 18 No |
To compute the monthly, half-yearly and annual sales made by all the salesmen of a company.
What is web forms in c#?
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide virtual SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
What is the class in c#?
Do vs while c#?
Why do we use methods in c#?
if a method is marked as protected internal who can access it?
what are the events in delegate?
What is the difference between malloc () and new?
What is int64 in c#?
How can I produce an assembly?
What is difference between gridview and form view?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)