Question
Write a C++ program that contains two integer data members which are initialized to 100 when an object is created. It has a member function avg() that displays the average of data members.
Write a C++ program that contains two integer data members which are initialized to 100 when an object is created. It has a member function avg() that displays the average of data members.
Sign in to write or photograph your own answer before checking the model answer. It is saved privately to your account and free to do.
Flashcards, MCQs and other questions linked to this one appear here as they are added.
Topics and outcomes this question is testing.