Question: cs 170-01 Programming t Test 3 Spring 2018 c) static d) not-a e) none of the above 5) The original class that is used to

 cs 170-01 Programming t Test 3 Spring 2018 c) static d)

cs 170-01 Programming t Test 3 Spring 2018 c) static d) not-a e) none of the above 5) The original class that is used to derive a new class using inheritance is called a) a superclass b) a parent class c) a base class d) all of the above c) ncither a), b), nor c) 6) The derived class created using inheritance is callod a) a child class b) a superclass c) a parent class d) all of the above c) neither a), b), nor c) 7) In order for derived classed to have access to encapsulated data members and methods of superclesses, the data members and methods should be declared using the modifier a) private b) public ) protected d) final c) static 8) The special reference isused to refer tothe parent class in a child class. a) this b) super c) null d) parent e) none of the above 9) Which of the following key words indicates a new class is being derived from an existing class? a) super b) final c) extenda d) inherita e) expands method 10) To invoke a pareet's constructor in a subclass, we use the a) abstract b) construct c) parent d) super e) extends class. 11) All Java classes are subclasses of the a) string b) java lang c) Java d) claas e) Object 12) A subclass inberits from its superclass. ) private method b) protected method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!