I am trying to solve the question below, but I do not understand it very well. Do I need to use overloading, although it doesn’t say that? How could I get started?
Create a class that imitates part of functionality of the basic data
typ int. Call the class Int. The only data in this class is int
variable. Include member functions to initilize an Int to 0, to
initilize it to an int value, to display it and to add two int values.Write a program that excersices this class by creating two initilized
and one uninitilized Int values, adding these two initilized values
and placing the response in the uninitilized value and then displaying
this result.
Sounds like you have to create a class that holds an
intand implement some overloaders (==,>,<,+,-,++,--, etc) which manipulate thisint.Edit as DevSolar mentioned in the comments to the question, it’s not right to actually give answers in code because there’s a homework tag. I explained the question, good luck!