Answered step by step
Verified Expert Solution
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:
lastname : std::string
firstname : std::string
middlename : std::string
The Name class should include setters and getters for all instance variables.
The Name class has three constructors:
A parameterless 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
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