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 boxing in c#?

0 Answers  


What?s a delegate?

8 Answers   CTS, Visual Soft,


What is type casting. Explain it with reference to classes.

2 Answers   HCL, JPMorgan Chase,


Explain boxing and unboxing in c#?

0 Answers  


Which layer executed first among these Application layer,Buisness layer or Data Base Layer?

2 Answers   L&T,






Are constructors inherited c#?

0 Answers  


What are properties in c#. Explain with an example?

0 Answers  


What is the difference between static class and abstract class in c#?

0 Answers  


What are jagged arrays used for?

0 Answers  


Explain “static” keyword in c#?

0 Answers  


What is xml serializer?

0 Answers  


What is winforms c#?

0 Answers  


Categories