How do you inherit from a class in C#?

Answers were Sorted based on User's Feedback



How do you inherit from a class in C#?..

Answer / venu gopal

Place a colon and then the name of the base class. Notice
that it?s double colon in C++.

Is This Answer Correct ?    4 Yes 0 No

How do you inherit from a class in C#?..

Answer / hafiz usman majeed

subclassname : superclassname

Is This Answer Correct ?    4 Yes 0 No

How do you inherit from a class in C#?..

Answer / shadab

write first derived class name after that colon(:)and then
write super class name.
for example

class Base
{
}
class Derived:Base
{

}

for more information u can visit
http://www.shadab-programminghelp.blogspot.com

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

what is meant inheritance. can you exaplain what kind inhertance ussed in your project

1 Answers  


Why singleton class is sealed?

0 Answers  


How do we achieve encapsulation in c#?

0 Answers  


What's the difference between system.string and system.text.stringbuilder classes?

0 Answers  


Is a dll an assembly?

0 Answers  


What is hierarchical inheritance in c#?

0 Answers  


What is the difference between func and action delegate?

0 Answers  


Is datetime value type c#?

0 Answers  


What is a nested type. Give an example?

0 Answers  


What are the features of c#?

0 Answers  


What is callback function in c#?

0 Answers  


What is difference between ienumerable and iqueryable in c#?

0 Answers  


Categories