Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
When to override base class method in derived class in c#. Please provide Real time Example For better Understanding


What I have tried:

When to override base class method in derived class in c#. Please provide Real time Example For better Understanding
Posted
Updated 8-Mar-21 20:57pm

 
Share this answer
 
Comments
Ralf Meier 9-Mar-21 4:18am    
... and also to you ... ;-)
But I suppose (when reading the question) something much more special is needed here ...
Perhaps you better ask your teacher for this ...
But basicly :
You allways override the base-class if you want to do something different or additional to that, what the base-class does.
To give you an example it is necessary to know what you generally trying to achieve ...
Perhaps in future you will give some more information ...
 
Share this answer
 
v2
Comments
Maciej Los 9-Mar-21 4:06am    
5ed!
Ralf Meier 9-Mar-21 4:17am    
Thank you Maciej ... it's a kind of "Back to the Roots" ... ;-)
Maciej Los 9-Mar-21 5:54am    
;)

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