Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include asing namespace std; class AI private: int ( x=5, y=10 ); pablic: virtaal print ()( =0 ); int gety () (retarn ( y z
#include asing namespace std; class AI private: int ( x=5, y=10 ); pablic: virtaal print ()( =0 ); int gety () (retarn ( y z ) ) int ( z=30 ); It class B: pablic AI private: int ( a, b, c ); I: class ( C: ) pablic ( A ) I private: int ( a, b, c ); public: print () (cout (
inctode ciostreso Jing nincerpace etail clase A. private: fat x=5,y=10 \} poblier virtaal print (0)=0 ? int pezy i) (retorn i ) intz=20. h. ban: At peblio A private int a, b, ct dase Ci pabila Ai peivate. int a,b,o ? poblio: printz () sooutce"z:"z ) It Based on the progran above answer the questions: int main() 1 A ObjA; B objB; C objC; objC.printxO; objC.printYO; objc.printzO; return ; 1*this line of code will generate (Error/No Error) [a] */ / this line of code will generate (Error/No Error) [b] * 1 this line of code will generate (Error/No Error) [d] */ / this line of code will generate (Error/X5) / this line of code will generate (Error/ /:10/ ) /this line of code will generate (Error/2:30) [d] [] % [t] %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