Make a very simple class. Make a class Simple with one attribute i, one method double, which replaces the value of i by i+i, and a constructor that initializes the attribute. Try out the following code for testing the class:
Before you run this code, convince yourself what the output of the print statements will be. Name of program file: Simple.py
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here