Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Name.h The Name class models a Name object. A Name object has the following private instance variables: last _ name : std::string first _ name

Name.h
The Name class models a Name object. A Name object has the following
private instance variables:
last_name : std::string
first_name : std::string
middle_name : std::string
The Name class should include setters and getters for all instance variables.
The Name class has three constructors:
A parameter-less constructor that initializes all instance variables with
the empty string
A constructor that has a parameter for each instance variable
A copy constructor that creates a Name object that is a copy of the
parameter
The Name class also contains a public member function, showName(), that
displays the name as shown here:

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

Students also viewed these Databases questions