Material Type: Quiz;
Class: Data Structures and Algorithms;
Subject: Electrical & Computer Engineer;
University: Virginia Polytechnic Institute And State University;
Term: Unknown 2011;
Download Quiz with Solution for Data Structures and Algorithms | ECE 2574 and more Quizzes Data Structures and Algorithms in PDF only on Docsity!
CE 2574 Quiz 12 5 \o Your Name: {Please J6 not use your SS# or Hokie ID# on this paper). is the ability of a class to derive properties from a previously defined class. a} Encapsulation b)__ Simulation d} Polymorphism Sx Fase inherits all of the following members of its superclass EXCEPT } ) . a) public methods b) data fields c)_ constructors and destructor =d) protected method> hich of the following class declarations indicates that Bal 1 is a derived class of Sphere? a)_ class Sphere: public Ball fl class Ball: public spher ¢) class Ball: :Sphere d) class Ball (sphere) ac In. inheritance, public and protected members of the base class remain, respectively, public and protected members of the derived class. private d) protected A function is one that a derived class can override. a) final 6. Evgfy class that defines a virtual method has a(n) to establish pointers to the versions of the virtual Methods that are appropriate for the object type. . a) sybcla programmer-defined list d) abstract class hich of the following is NOT true of virtual methods? a) a derived class does not need to override an existing implementation of an inherited virtual method b) destructors can and should be virtual constructors cannot be virtual d) a virtual method’s return type can be ove: