Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. When a class B can extend another class A, we say that

  2. A.

     A is the superclass and B is the subclass

    B.

     B is the superclass and A is the subclass

    C.

     Both A and B are the superclass

    D.

     Both A and B are the subclass

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Instances of B inherit all the instance methods of A. The class B can define its own instance methods, some of which may override methods of the same name defined by class A.


Be The First To Comment