Friday, 28 December 2012 13:56

keyword base

Written by 
Rate this item
(0 votes)

the base keyword is used to access base class
members inside derived class.

you can call a method from base class though
it is overridden by another method using base
keyword.
when you create a instance of derived class,
you may call the constructor of base classes
with the keyword base.

following rules are applied in base class access-
-within instance methods
-within constructor
-instace property accessor

you can't use the base keyword in the static
methods generating errors.

Read 3088 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.