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.
Toolbase class
# id : string
# toolCount : int : static
Toolid : 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
