Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Worksheet 13 Chapter 13 Transfer your answers to all questions to Chi-Tester. Numbers in square brackets at the beginning of each question refer to sections
Worksheet 13 Chapter 13 Transfer your answers to all questions to Chi-Tester. Numbers in square brackets at the beginning of each question refer to sections in the textbook. You may review your answers after all answers are entered. Please take a few moments to read the feedback. 1.[13.3] Virtual functions allow you to a. b. c. d. create an array of type pointer-to-base clas that can hold pointers to derived classes create functions that can never be accessed. group objects of different classes so they can all be accessed by the same function code use the same function call to execute member functions of objects from different classes 2. [13.2] A pointer to a base (super) class can point to objects of a derived (sub) class. a. True b. False 3. [13.3] Write a prototype for a virtual function called dang) that returns type void and takes one argument of type int (do not add the"" at the end of the statement or include an argument name in your response) 4.[13.1] Deciding what function a particular function call executes, after a program starts running, is called 5. [13.5] Write the declaration for a pure virtual function called aragorn that returns no value and takes no arguments (do not add the "" at the end of the statement) 6. [13.5] A pure virtual function is a virtual function that (mark all that apply) a. causes its class to be abstract. b. returns nothing c.is used in a base (super) class d. takes no arguments 7. [13.5] An abstract class is useful whern classes should be derived from it. a. no b. there are multiple paths from one derived class to another c. no objects should be instantiated from it. d. you want to defer the declaration of the class 8.[13.1] Which of the following is not one of the defining features of the object-oriented model? a. inheritance b. association
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started