Monday, July 12, 2010

Be aware when extending the base class

Kindly take note when extending the base class from a sub class:
  1. Subclass static method can not override Baseclass instance method, otherwise an error static method can't hide instance method from Baseclass will be prompt.
  2. Subclass instance method can not override Baseclass static method, otherwise an error instance method cannot override the static method form Baseclass will be prompt.
Happy programming @!

No comments: