Assignment 10
Construct a class 'B' that has members p, q and and a method r. The function should have a
method that prints the sum of p and q. r gives that number of times the
class is operated for the sum and should be tamper-free from the rest of the code for this
purpose.
PS: The program should be coded in C++.
|