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 generic and non generic collections in c#?

0 Answers  


What is parallel foreach in c#?

0 Answers  


There are a class A. Another class B derived from it. Now if I do A a = new B(); and B b = new B(); What will happen in both the statements. And what is the difference between these two statements.

3 Answers   HCL,


Describe the accessibility modifier protected internal.

3 Answers   Siebel Systems, Visual Soft,


What is string concatenation?

0 Answers  






What is multidimensional array in c#?

0 Answers  


What is jagged array?

0 Answers  


What is xml comments in c#?

0 Answers  


What?s a multicast delegate?

5 Answers   Visual Soft,


what is IDisposal interface,IComparable,IEquatable,IFormatable

0 Answers   Wipro,


Which is the base class in c#?

0 Answers  


How much time will it take to learn unity?

0 Answers  


Categories