Write a C++ class and choose any name for it. The class should have two private members and two public members. Write a constructor to initialize these members to zero. Write another constructor to...


Write a C++ class and choose any name for it. The class should have two private
members and two public members. Write a constructor to initialize these members
to zero. Write another constructor to initialize these members to non-zero values.
Write a method to return the average of the class members. Write a C++ program
and initialize the members of the class with [2,5,8,3] respectively and call its method
to calculate the average.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here