Question: Question 8 Given the following declarations, public class Parent { ... } public class Child extends Parent implements Wizard { ... } public class Grandchild

Question 8

Given the following declarations,

public class Parent { ... } public class Child extends Parent implements Wizard { ... } public class Grandchild extends Child { ... }

Which of the following is NOT true?

Child "Is-A" Wizard
Parent "Is-A" Wizard
Grandchild "Is-A" Child
Grandchild "Is-A" Parent
Grandchild "Is-A" Wizard

Flag this Question

Question 9

In Java a class can inherit members from more than 1 super class.

True
False

Flag this Question

Question 10

Given the following definition: public class Alpha implements Freezable {...} And the following client code: Freezable f = new Alpha(); Which is true?

The variable f has static type Freezable and dynamic type Freezable
The variable f has static type Freezable and dynamic type Alpha
The variable f has static type Alpha and dynamic type Alpha
The variable f has static type Alpha and dynamic type Freezable

Flag this Question

Question 11

Which of the following creates a new data type?

an abstract class definition
a concrete class definition
an interface definition
All of the above.
None of the above.

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!