Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a simple UML that contains class name, data members, and member functions for the belowAlter the driver program ( changes highlighted in yellow -
Create a simple UML that contains class name, data members, and member functions for the belowAlter the driver program changes highlighted in yellow changes start with #
Instantiates two Cards. Use different constructors.
Declares an array of three elements of your Card class.
Declares a pointer to your Card class. Do not allocate memory.
Instantiate a Card object that uses another object for initialization.
Allocates memory for the pointer from #
Pass a Card by value to a function.
Pass a Card by reference to a function.
Pass a Card by constref to a function.
Pass a Card by pointer to a function.
Pass the array of Cards from # to a function.
Create a function that instantiates a local Card object and then returns that object from the
function.
Deallocates the memory referenced by the pointer.
Instantiates a Deck object using its default constructor.
Pass a Deck by value to a function.
Return a Deck by value from a function.
In a single statement allocate a Deck and set it equal to a deck returned by ref from a function
something like Deck deck ReturnDeckByRefsomeOtherDeck;
In a single statement set a previously allocated Deck equal to a deck returned by ref from a
function something like deck ReturnDeckByRefsomeOtherDeck;
In a single statement allocate a Derand set it equal to a deck returned by value from a
function something like Deck deck ReturnDeckByValue;
In a single statement set a previously allocated Deck equal to a deck returned by value from a
function something like deck ReturnDeckByValue;
Call the DisplayDeck function to display all of the cards in the deck.
Call Deck.Shuffle then call the DisplayDeck function to display all of the cards in the deck.
Call Deck.Shuffle then call the DisplayDeck function to display all of the cards in the deck.Ccc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started