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

What is c sharp language?

504


When a Static Constructor is called in a Class?

577


Explain About .Net remoting

565


Why dictionary is used in c#?

542


What is difference between singleton and static class in c#?

472






What's your approach to fetch static data in your windows form application?

505


What the different phase/steps of acquiring a proxy object in webservice?

466


Do vs while c#?

483


Can you store strings in arrays?

538


What is a static property. Give an example?

518


Can I define a type that is an alias of another type (like typedef in c++)?

532


What is callback function in c#?

525


Distinguish between array and arraylist in c#?

576


Why do we use inheritance in c#?

477


In which order the destructor is called for an inherited class?

524