Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

Students also viewed these Databases questions