(prefer to image for exact question) A class Number has been defined to find the frequency of each
digit present in it and the sum of the digit and to display the results.
Some of the members of the class Number are given below:
Class Name : Number
Data Member
nm
Integer type
Member Functions:
Number (int n)
void Frequency ()
constructor to assign n to num
to find the frequency of each digit and to
display it
/Comp Sci)
(4)
int Sum ()
to returns the sum of the digits of the
numba.
Specify the class Number giving the details of the constructors and
functions void Frequency () and int Sum ( You do not need to
write the main () function
Attachments:
Answers
Answered by
0
Answer:
I don't know this answer ask someone else
Similar questions