Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Advanced Inheritance Review Questions 1. Parent classes are a. less specific , less specifethan their child classes b. more specific c. casier to understand

image text in transcribed
image text in transcribed
Java Advanced Inheritance Review Questions 1. Parent classes are a. less specific , less specifethan their child classes b. more specific c. casier to understand d. more cryptic 2. Abstract classes differ from other classes in that you must not code any methods within them a. b. must instantiate objects from them c. cannot instantiate objects from them d. cannot have data fields within them 3. Abstract classes can contain a. abstract methods b. nonabstract methods c, both of the above d. none of the above 4. An abstract class Produet has two subclasses. Perishable and NonPerishable. None of the constructors for these classes requires any arguments. Which of the following statements is legal? a. Product myProductnew Product0 b. Perishable myPzoduct-new Product c. NonPezishable myProduct new NonPerishable o d. none of the above 5. An abstract class Employee has two subclasses, Fermanent and Tempozary. The Employee class contains an abstract method named set?ype ().Before you can instantiate Permanent and Temporary objects, which of the following statements must be true? a. You must code statements for the setType () method within the Permanent class. You must code statements for the set Type ( : Permanent and Temporary classes b. method within both the c You must not code statements for the setType) method within either the Permanent or Temporary class. d. You can code statements for the setType() method within the Permanent class or the Temporary class, but not both 6. When you create a superclass and one or more subclasses, each object of the subclass Superclass object. a. overrides the b. "is a c. "is not a" d. is a new Which of the following statements is true? a. Superclass objects are members of their subclass b. Superclasses can contain abstract methods. 7. c. You can create an abstract class object using the new operator d. An abstract class cannot contain an abstract method

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago