top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between shadow and override?

0 votes
273 views
What is the difference between shadow and override?
posted Nov 24, 2014 by Roshan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In general when you extend a class you shadow fields with the same name in the base class and override virtual methods with the same name and parameter list in the base class. Overriding makes the base class method invisible. Shadowing a field only hides the field from view. You can still explicitly touch the hidden shadowed field if you wish. You cannot touch an invisible overridden method.

answer Nov 24, 2014 by Manikandan J
...