Example from slide 15:
#ifndef DIE_H
#define DIE_H
class Die {
public:
Die(int sides = 6);
int GetSides() const {return m_sides;} // Method3
int Roll();
private:
int m_sides;
};
#endif
End Code
Example from Slide 22:
class RandomCoin {
public:
RandomCoin();
char Flip();
private:
Die m_twoSidedDie;
};
End Code
Using the slides from lect15.pptx create a class called Die with a header file (.h) similar to, if not exactly like the one on slide 15. Also, create the associated .cpp file called Die.cpp. After
OR
OR