hello, I have a program to write and I'm not sure how to continue, can you help? Here is the question.
1. Create a class test that will have the following features:-
2. Must have a private attribute that stores an integer.
3. A public method call store that returns no value.
4. A public method checkprime that returns an integer
A public method print that returns no value.
Use the class above to create a program that will accept an indefinite number of integers and print those that are prime numbers
1. Create a class test that will have the following features:-
2. Must have a private attribute that stores an integer.
3. A public method call store that returns no value.
4. A public method checkprime that returns an integer
A public method print that returns no value.
Use the class above to create a program that will accept an indefinite number of integers and print those that are prime numbers
Comment