A Moving to another question will save this response. Question 17 class Hand std
ID: 3578702 • Letter: A
Question
A Moving to another question will save this response. Question 17 class Hand std: vector Card cards public: Hand default, Hand void add(const Card&) Card get (size t index), virtual int score() const 03 virtual void sort(); bool operator (const Card& rhs) const, class PokerHand public Hand li class Black jackHand public Hand Here is a class hierarcy for different card games. According to this design. which methods may the a sort b, get c add() d score e operator A Moving to another question will save this responseExplanation / Answer
Ans:
b. get
c. add
e. operator<()
Here except two functions: score() and sort(). all other functions are concerete function, means they have implementation in Hand class.
So, they can be used in child/derived class without making any changes.
But score() and sort() functions are virtual functions. Child/Derived
class should implement these classes
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.