Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Study the following definition of classes Ahmad and Ali and answer the questions in the space provided below (write the question number and your answer)
Study the following definition of classes "Ahmad" and "Ali" and answer the questions in the space provided below (write the question number and your answer) class Ali { string name; string job; int age; class Ahmad { string major; int ID; }; Assume class "Ali" publicly inherited all members of class "Ahmad" A- Write the definition of the default constructor of "Ahmad" so that the instance variables of "Ahmad" are initialized to any value of your preference. B- Write the definition of the default constructor of "Ali" so that the instance variables of "Ali" are initialized to any value of your preference. Paragraph - B1 III 111
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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