Exam 10: Introduction to Inheritance

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When a protected data field or method is created, it can be used within its own class or in any classes extended from that class; but it cannot be used by outside classes.

(True/False)
4.8/5
(44)

Which of the following statements will create a class named Red that is based on the class Color ?

(Multiple Choice)
4.8/5
(34)

An error is generated by the compiler when you attempt to override a static method with a nonstatic method.

(True/False)
4.9/5
(37)

When you use the method name with a child object, the parent's version of the method is used.

(True/False)
4.9/5
(36)

Using a class named Student , write the statement to create a yearOne object of the Student class.

(Short Answer)
4.8/5
(40)

When you create a class and do not provide a(n) ____, Java automatically supplies you with a default one.

(Multiple Choice)
4.7/5
(27)
Showing 61 - 66 of 66
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)