Exam 9: Object Oriented Programming: Inheritance

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

Which statement is true when a superclass has protected instance variables?

(Multiple Choice)
4.7/5
(31)

Consider the classes below,declared in the same file: Class A { Int a; Public A() { A = 7; } } Class B extends A { Int b; Public B() { B = 8; } } Which of the statements below is false?

(Multiple Choice)
4.9/5
(39)
Showing 21 - 22 of 22
close modal

Filters

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