Kindly take note when extending the base class from a sub class:
- Subclass static method can not override Baseclass instance method, otherwise an error static method can't hide instance method from Baseclass will be prompt.
- 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:
Post a Comment