Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Moving to another question will save this response Question 11 class Hand std: v

ID: 3580621 • Letter: M

Question

Moving to another question will save this response Question 11 class Hand std: vector Card cards public: Hand() default, -Hand() void add (const Card&) Card get (size t index)i virtual int score() const virtual void sort bool operator (const Cards rhs) const, class Pokertland public Hand )i class Black jackHand public Hand Here is a class hierarcy for different card games. Using C++ terminology, the score function is called a(n) a abstract method b pure virtual function c mutator d virtual function A Moving to another question wilsave this response

Explanation / Answer

Q11)
   Ans: b. pure virtual function

   Signature of score() function:
       virtual int score() const = 0;

   So, we have two types of virtual function:
       Simple virtual function
       and, pure virtual function

       here virtual void sort(); is a virtual function
       and score() is a pure virtual function

Q12 is not crealry redable. Can you please repost it.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote