Define a class named Number with the following
description:
Instance variables/ data members:
int num - to store a number
Member methods:
Number() - default constructor to initialize num by 0
void accept() - to input and store an integer in num
boolean issquare(int x) - to check whether the value in x is a
square of the value in num and return true if it is and false otherwise.
Write a main method to create an object of the class and call
the above member methods to print the appropriate
please answer fast
Answers
Answered by
0
Answer:
i dont no
follow me ✧༺♥༻✧
Similar questions
Hindi,
3 months ago
Computer Science,
7 months ago
Math,
7 months ago
English,
1 year ago
Hindi,
1 year ago
World Languages,
1 year ago