How do you inherit from a class in C#?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which control cannot be placed in mdi?

526


Can we call server-side code (c# or vb.net code) from javascript?

518


How to override a function in c#?

540


Give an example of a ctype.

558


What is verbatim literal in c#?

487






From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

512


can you create a function in c# which can accept varying number of arguments

593


What types of object can I throw as exceptions?

532


Explain the difference between boxing and unboxing.

533


How to Install uninstall assemblies into GAC?

504


What is the difference between do and while loop?

442


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

534


What is concrete class in c#?

470


How can you force derived classes to provide new method implementations for virtual methods?

481


What is the difference between dictionary and hashtable in c#?

464