Question
Add Two constructors: A- No argument that puts the Name in a safe empty state (It is your call to decide what is a safe
Add Two constructors: A- No argument that puts the Name in a safe empty state (It is your call to decide what is a safe empty state for a Mark) B- A 2 argument constructor that sets a Name. C- Add a method calls isEmpty() that returns a Boolean. It returns true if the Mark is in a safe empty state. D- A display function that displays the full name.
class Name { char buffer[51]; char m_first[21]; char m_last[31]; public:
void firstname(const char* value); // sets the name void lastname(const char* value); // sets the last name const char* fullname(); // returns a string containing full name };
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