a) Implement a class Person. data members: name an automatic variable functions: accessor an accessor for the type variable output () output of data members b) Implement a class Student which is derived from Person. data members: id - a dynamic variable (8 digit id #) an accessor for the id variable redefined output of data members functions: accessor output () c) Implement the big three for either class if and only if necessary.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.2: Basic Class Functions
Problem 10E
icon
Related questions
Question

using c++

a) Implement a class Person.
data members:
name
an automatic variable
functions:
accessor
an accessor for the type variable
output ()
output of data members
b) Implement a class Student which is derived from Person.
data members:
id
- a dynamic variable (8 digit id #)
an accessor for the id variable
redefined output of data members
functions:
accessor
output ()
c) Implement the big three for either class if and only if necessary.
Transcribed Image Text:a) Implement a class Person. data members: name an automatic variable functions: accessor an accessor for the type variable output () output of data members b) Implement a class Student which is derived from Person. data members: id - a dynamic variable (8 digit id #) an accessor for the id variable redefined output of data members functions: accessor output () c) Implement the big three for either class if and only if necessary.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning