Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Assessnik Portion (3 points each) 1. Select the false statement regarding inheritance. contain more attributes and behaviors than its base class. a. A derived

image text in transcribed C++
Assessnik Portion (3 points each) 1. Select the false statement regarding inheritance. contain more attributes and behaviors than its base class. a. A derived class can b. A derived class can be the base class for other derived classes. c. Some derived classes can have multiple base classes. d. Base classes are usually more specific than derived classes 2. Which of the following is not a kind of inheritance in C++? a. public. c. static. b. private. d. protected 3. The is-a relationship represents: a. Composition. c. Information Hiding. d. A friend 4. Assuming the following is the beginning of the constructor definition for class BasePlus-CommissionEmployee which inherits from class Point BPCEmployee:BPCEmployeel string name, string ssn, double rate, double salary) CommissionEmployee( name, ssn, rate ) The second line(: CommissionEmployee(...).) a. Invokes the CommissionEmployee constructor with arguments b. Causes a compiler error c. Is unnecessary because the CommissionEmployee constructor is called automatically d. Indicates inheritance. 5. protected base class members cannot be accessed by a. Functions that are neither friends of the base class, derived-class member functions nor friends of a derived class. b. friends of the base class. c. Functions that are not derived-class member functions. d. friends of derived classes. 6. When an object of a derived class is instantiated, the initializes the constructor members by calling the a. Base class, base class, derived. b. Derived class, base class, base. c. Base class, derived class, derived. d. Derived class, public, derived. 7. Polymorphism is implemented via: a. Member functions. b. virtual functions and dynamic binding

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

What are zoning laws? How do they affect the location decision?

Answered: 1 week ago

Question

1. Describe the development of creative strategy.

Answered: 1 week ago

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago