Assume there is a class Derv with one int variable that is derived from a base class Base with one int variable. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Assume there is a class Derv with one int variable that is derived from a base class Base with one int variable.

Write the declarator for the derived class constructor that takes two arguments and passes one of them to the base class constructor.

11th Jan 2021, 12:43 AM
mohamed emad
mohamed emad - avatar
1 Answer
0
Please provide the code you have written so far and indicate where you are stuck. We can only help you once you have shown some effort of your own.
11th Jan 2021, 5:34 AM
Elizabeth Kelly
Elizabeth Kelly - avatar