question archive Consider a class named Calculator that contains · Two data members i
Subject:Computer SciencePrice:2.87 Bought7
Consider a class named Calculator that contains
· Two data members i.e. num1 and num2
Make the class Calculator into a template and in this way, a user would be able to instantiate it using different data types for the data members. In the main function, instantiate two objects of Calculator class with data members of type integer and float, respectively and invoke all functions of class Calculator.
Purchased 7 times