You have a class named Glass that inherits from a base class named Window. The Window
class includes a protected method named break().
How should you call the Glass class implementation of the breakO method?
A.
Glass.break()
B.
Window.break()
C.
Me.break()
D.
MyBase.break()
Should be A.
Agree
Unclear questions???
Depends where called.
From within Glass class = MyBase.Break
From instance of Glass class = cGlass.Break (technically it wouldn’t be Glass.Break as instance would not be named same as class, otherwise that’s the shared/static syntax)