Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cpp//4 2- What is a destructor and how and when it is called? 3- What safe empty state? 4- Having the following class fully implemented:

cpp//4

2- What is a destructor and how and when it is called?

3- What safe empty state?

4- Having the following class fully implemented: (you can copy the code for mark from name.cpp)

5- 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

Step: 3

blur-text-image

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 Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions