PrepAway - Latest Free Exam Questions & Answers

How should you call the Glass class implementation of the breakO method?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Glass.break()

B.
Window.break()

C.
Me.break()

D.
MyBase.break()

3 Comments on “How should you call the Glass class implementation of the breakO method?

  1. DB7 says:

    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)




    1



    0

Leave a Reply