Question: Given: The Tool class is a base class. Two classes, HandTool and PowerTool are derived from the Tool class. Based on this UML class diagram,

Given: The Tool class is a base class. Two classes, HandTool and PowerTool are derived from the Tool class.
Based on this UML class diagram, which is true about the pure virtual function, showDescription.
___________________ Tool_______(base class)_____
# id : string
# toolCount : int : static
_____________________________________________________
+ Tool(id : string) : // This is the only Tool class constructor (no default constructor)
+ ~Tool() :
+ showWarranty(): void : virtual
+ showDescription() : void : pure virtual
_____________________________________________________
Group of answer choices
A Tool class object can exist, but cannot be inherited.
There cannot be a showDescription function in a derived class.
The Tool class cannot be instantiated. In other words, in main(), a Tool object cannot be created.
There can only be one pure virtual function in a class
None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!