How do you inherit from a class in c#?
2 September 2009
427 views
No Comment
Place a colon(:)and then the name of the base class.
eg:
public baseclass
{
/ /signatures
}
public childclass : baseclass
{
//signature
}
Popularity: unranked [?]
Related interview questions
- When you inherit a protected-class-level variable,who is it available to?
- Is it possible to create constructor for an Abstract class?
- Can I inherit two difference classes to partial classes?
- What is method overloading?
- How can I create a Singleton class by using public constructor?












Leave your response!
You must be logged in to post a comment.