How to use the base keyword to call a base class method (not a constructor)

  • Thread starter Thread starter Bob Rock
  • Start date Start date
B

Bob Rock

Hello,

I have read that the base keyword can be used not only to control a base
class instantiation (thus calling one of the base class constructors) but
also to access any other public or protected method in the parent class ...
I have search all over for an example of how to do this but have failed.
What I was wondering is about the syntax necessary to make such a call .....
Thx..

Bob Rock
 
Greg Ewing said:
Bob, did you check out MSDN? There's an example up there. Is there
something that this sample doesn't cover?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/
vclrfbasepg.asp

Thank you Greg, I searched on my numerous books and also on the msdn but I
was expecting a diffente syntax that is why I did not find it .... "base"
seems to be used pretty much like "this" but it provides access to the
parent class instead of the instance object.

Bob Rock
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top