Question

Question 60.1 pts Which of the following is true about a concrete class? A concrete class...

Question 60.1 pts

Which of the following is true about a concrete class?

A concrete class may be extended.
A concrete class may be instantiated.
A concrete may NOT contain abstract methods.
All of the above.
None of the above.

Flag this Question

Question 70.1 pts

Which of the following is true?

A class extends exactly one other class and may implement any number of interfaces.
A class may extend at most one concrete class, may extend any number of abstract classes, and may implement any number of interfaces.
A class may extend one concrete class and also one abstract class, and may implement any number of interfaces.
A class may extend exactly one other class, OR may implement any number of interfaces, but not both.

Flag this Question

Question 80.1 pts

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 90.1 pts

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 100.1 pts

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.
0 0
Add a comment Improve this question Transcribed image text
Answer #1
1)  All of the above.
2)  A class extends exactly one other class and may implement any number of interfaces.
3)  Parent "Is-A" Wizard
4)  The variable f has static type Freezable and dynamic type Alpha
5)  a concrete class definition
Add a comment
Know the answer?
Add Answer to:
Question 60.1 pts Which of the following is true about a concrete class? A concrete class...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In JAVA Algorithm Workbench 1. Write the first line of the definition for a Poodle class....

    In JAVA Algorithm Workbench 1. Write the first line of the definition for a Poodle class. The class should extend the Dog class. 2. Look at the following code, which is the first line of a class definition: public class Tiger extends Felis In what order will the class constructors execute? 3. Write the statement that calls a superclass constructor and passes the arguments x, y, and z. 4. A superclass has the following method: public void setValue(int v) value...

  • Assignment4: Evaluate Arithmetic Expressions. Requirements: Implement a concrete ArrayStack class that extends the IStack interface as...

    Assignment4: Evaluate Arithmetic Expressions. Requirements: Implement a concrete ArrayStack class that extends the IStack interface as we discussed in the class (any other different Stack class implementation, even if it is implemented by yourself, will not receive any credit). Write a test class called Evaluate and a method that evaluates an arithmatic expression, which is given by a string. import java.util.Scanner; public class Evaluate { public static void main(String[] args) } // your implementation // obtain user's input from keyboard...

  • QUESTION 4 is true? C a. An interface rnay contan abstract mee ods and concrete methods....

    QUESTION 4 is true? C a. An interface rnay contan abstract mee ods and concrete methods. b.An abstract class may not contain concrete methods A class may implement more than one interface. C d. A dlass may inherit from more than one superclass QUESTION 5 about the first pass of a Quick Sort is true? C a. At the end of the first pass, the smallest item in the list will be in its final position сь. The first pass...

  • 1.     When a sub class object is created, when is the call to the super class...

    1.     When a sub class object is created, when is the call to the super class constructor made? How does a programmer call the super class constructor from the sub class? What do all classes indirectly extend? What methods does every class inherit from the Object class? 2.     When writing methods in a sub class, how can those methods call the methods from the parent class? 3.     Which class is more specific, a super class or a sub class? 4.    ...

  • 1-Suppose you write an application in which one class contains code that keeps track of the...

    1-Suppose you write an application in which one class contains code that keeps track of the state of a board game, a separate class sets up a GUI to display the board, and a CSS is used to control the stylistic details of the GUI (for example, the color of the board.) This is an example of a.Duck Typing b.Separation of Concerns c.Functional Programming d.Polymorphism e.Enumerated Values 2-JUnit assertions should be designed so that they a.Fail (ie, are false) if...

  • Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts...

    Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts What code is human-readable and follows the standards of a programming language? Secret code Source code Key code None of these Machine code Question 3 2 pts What is the symbol that marks the beginning of a one line comment? Question 1 2 pts The preprocessor executes after the compiler. True False Question 5 2 pts A statement that may be used to stop...

  • JAVA question Interface and Abstract Class (20 pts): There are three types of triangles in terms...

    JAVA question Interface and Abstract Class (20 pts): There are three types of triangles in terms of how many sides are equal: • Equilateral Isosceles Scalene There are three types of triangles in terms of the degrees of interior angles: • Right · Acute . Obtuse Right Isosceles triangle is a right triangle, as well as an isosceles triangle. Triangle 590° Right triangle Isosceles triangle Right isosceles triangle Create a public interface Triangle, add the following method signatures: • double...

  • Requirements:  Your Java class names must follow the names specified above. Note that they are...

    Requirements:  Your Java class names must follow the names specified above. Note that they are case sensitive. See our template below.  BankAccount: an abstract class.  SavingAccount: a concrete class that extends BankAccount. o The constructor takes client's firstname, lastname and social security number. o The constructor should generate a random 6-digit number as the user account number. o The initial balance is 0 and the annual interest rate is fixed at 1.0% (0.01).o The withdraw method signature...

  • Question 1 10 pts Inheritance is a capability of C++ to represent increased specialization that is...

    Question 1 10 pts Inheritance is a capability of C++ to represent increased specialization that is often found in real world relationships. True False Question 2 10 pts Inheritance between a child and parent object exhibits an 'relationship. Question 3 10 pts As you move down an inheritance relationship from parent to child, you typically move from a general to specific description. True False Question 4 10 pts The syntax for declaring DerivedClass to publicly inherit from BaseClass is given...

  • Question 1 Inheritance represents what type of relationship? Is-A Has-A Was-A Composition Flag this Question Question...

    Question 1 Inheritance represents what type of relationship? Is-A Has-A Was-A Composition Flag this Question Question 2 What is the keyword used to indicate a class inheritance relationship? Flag this Question Question 3 A sub class may not access any private members of the super class by name. True False Flag this Question Question 4 What is the keyword used by a sub class to call a super class constructor? Flag this Question Question 5 When we implement the method:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT