Shared Flashcard Set

Details

CISC 192 Chapter 15 Mesa
Back of the Book Questions
30
Computer Science
Undergraduate 2
11/13/2012

Additional Computer Science Flashcards

 


 

Cards

Term
19. A derived class inherits the __________ of its base class.
Definition
members
Term
20. When both a base class and a derived class have constructors, the base class s constructor is called __________ (first/last).
Definition
first
Term
21. When both a base class and a derived class have destructors, the base class s constructor is called __________ (first/last).
Definition
last
Term
22. An overridden base class function may be called by a function in a derived class by using the __________ operator.
Definition
scope resolution operator
Term
23. When a derived class redefines a function in a base class, which version of the function do objects that are defined of the base class call? __________
Definition
base class version
Term
24. A(n) __________ member function in a base class expects to be overridden in a derived class.
Definition
virtual
Term
25. __________ binding is when the compiler binds member function calls at compile time.
Definition
static
Term
26. __________ binding is when a function call is bound at runtime.
Definition
dynamic
Term
27. __________ is when member functions in a class hierarchy behave differently, depending upon which object performs the call.
Definition
polymorphism
Term
28. When a pointer to a base class is made to point to a derived class, the pointer ignores any __________ the derived class performs, unless the function is __________.
Definition
overriding / virtual
Term
29. A(n) __________ class cannot be instantiated.
Definition
abstract base class
Term
30. A(n) __________ function has no body, or definition, in the class in which it is declared.
Definition
pure
Term
31. A(n) __________ of inheritance is where one class is derived from a second class, which in turn is derived from a third class.
Definition
chain
Term
32. __________ is where a derived class has two or more base classes.
Definition
ultiple inheritance
Term
33. In multiple inheritance, the derived class should always __________ a function that has the same name in more than one base class.
Definition
override
Term
38. T F The base class s access speci cation affects the way base class member functions may access base class member variables.
Definition
F
Term
39. T F The base class s access speci cation affects the way the derived class inherits members of the base class.
Definition
T
Term
40. T F Private members of a private base class become inaccessible to the derived class.
Definition
T
Term
41. T F Public members of a private base class become private members of the derived class.
Definition
T
Term
42. T F Protected members of a private base class become public members of the derived class.
Definition
F
Term
43. T F Public members of a protected base class become private members of the derived class.
Definition
F
Term
44. T F Private members of a protected base class become inaccessible to the derived class.
Definition
T
Term
45. T F Protected members of a public base class become public members of the derived class.
Definition
F
Term
46. T F The base class constructor is called after the derived class constructor.
Definition
F
Term
47. T F The base class destructor is called after the derived class destructor.
Definition
T
Term
48. T F It isn t possible for a base class to have more than one constructor.
Definition
F
Term
49. T F Arguments are passed to the base class constructor by the derived class constructor.
Definition
T
Term
50. T F A member function of a derived class may not have the same name as a member function of the base class.
Definition
F
Term
51. T F Pointers to a base class may be assigned the address of a derived class object.
Definition
T
Term
52. T F A base class may not be derived from another class.
Definition
F
Supporting users have an ad free experience!