Answered step by step
Verified Expert Solution
Question
1 Approved Answer
OOB B 0.12 pat C/Users/RTX/Downloads/Documents/QuizB.pdf # of 1 + A Head Aloud Draw Highlight Frase Inside the class Person add the followings: 1. Define the
OOB
B 0.12 pat C/Users/RTX/Downloads/Documents/QuizB.pdf # of 1 + A Head Aloud Draw Highlight Frase Inside the class Person add the followings: 1. Define the private pointer to character Address. 2. Inside the empty (default) constructor store None" inside Address. 3. Send an additional parameter to the parametrized constructor, store this parameter inside Address. 4. Add the public function setAddress that stores the received parameter inside the Address. 5. Add the public function getAddress that returns the Address. Inside the class Student add the followings: Send an additional parameter to the parametrized constructor, send this additional parameter to the parametrized constructor inside the class Person to store this parameter inside Address. Inside the main function add the following: Add an additional parameter to the definition of the objects: A, and B. this additional parameter to be stored inside Address. Call statements for the functions setAddress, and getAddress for the object C. Enter value to be passed from the user, and print result 3:33 PM D/30000Step 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