Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 Which of the following options is the code in C++for A class Student that inherits from a class Person. Aconstructor in Student that

image text in transcribedimage text in transcribed

Question 2 Which of the following options is the code in C++for A class Student that inherits from a class Person. Aconstructor in Student that calls (is able to call) a constructor in Person . . When the body of the method is not relevant to answer the question, it has been replaced for a comment/I code class Person { public: Person() //code Person (char 1Name, int year) II code private: char* lastName: int yearofBirth: class Studentpublic Person f public Student o I/code Student (char 1Name, int year, char* univer Person (1Name, year) //code private: char university: class Person public Person //code Person (char 1Name, int year) II code private: char* lastName: int yearofBirth class student public Person f public: Student O //code Student (char* Name, int ye, char univer) Person (1Name, year) //code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions