{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

test2 KEY - COP 3330 Exam#2 Summer 2011 Wednesday 100...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 (Question 1 20 points (2pts/answer) True/False Questions: Various Topics) Circle the correct answer. a. Abstract methods cannot be static. TRUE FALSE b. A subclass can be abstract even if its superclass is concrete. TRUE FALSE c. An interface can extend any class as well as extend any interface. TRUE FALSE d. It is possible for more than one subclass to extend the same superclass. TRUE FALSE e. Any class that contains an abstract method must be declared abstract. TRUE FALSE f. A subclass object is a specialized superclass object and therefore the super class object is always both a subclass and superclass type. TRUE FALSE g. In Java a class can extend one class and implement many interfaces. TRUE FALSE h. To explicitly invoke the superclass constructor on the object under construction, the keyword super must be used. TRUE FALSE i. An abstract class cannot be instantiated using the new operator and therefore you cannot provide an implementation of a constructor in an abstract class. TRUE FALSE j. Polymorphism occurs when a code expression can invoke different methods depending on the types of objects using the code. TRUE FALSE COP 3330 Exam #2 Summer 2011 Wednesday July 20, 2011 100 points total PRINT YOUR NAME CLEARLY Name: ID: KEY
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon