Design a class to overload a function check( ) as follows:
void check(String str, char ch)- to find and print the frequency of a character in a string.
Example:
Input: Output:
str = ”success” number of s present is = 3
ch = ‘s’
Answers
Answered by
0
Answer:
ch="chess" number of s present is 2
Similar questions