Click here to Skip to main content
15,918,125 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear sir;

How the parent class inherit the child class in c#?

Dalia
Posted

 
Share this answer
 
Comments
Member 8697827 6-Mar-12 1:38am    
thank you
Hi Dalia,

Study the links given by other people posted above.

by the way your question is wrong, only child class will get inherited from the parent class
 
Share this answer
 
Comments
Member 8697827 6-Mar-12 1:37am    
yes you are right only child class will get inherited from the parent class
but I want to know overriding
So thank you
hello,


Please study these links, by which you can understand the inheritance.


http://msdn.microsoft.com/en-us/library/ms173149%28v=vs.80%29.aspx


http://csharp.net-tutorials.com/classes/inheritance/
 
Share this answer
 
v3
Comments
Member 8697827 6-Mar-12 1:37am    
thank you
Hi,

I think MyClass keyword in .net will serve your purpose.

Call the parent class method from the child class using
XML
MyClass.<method name>


regards
Azeem
 
Share this answer
 
v2
Comments
Member 8697827 6-Mar-12 1:49am    
thank you
i think you are novice in programming field...
coz your question is itself wrong...
child class can never be inherited into a base class in any programming languages...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900