Methods and properties can also be accessed without the use of an object. To do this, the methods/properties must be declared static. Static methods/properties of a class can then be accessed directly with the help of the Class properties and class methods by using the double colon also know as the Scope resolution operator.
Task 8: B
A static property or method can be accessed by coding the self keyword, followed by a double colon and the property or method name.
Task 8: C
Create Questions for Student: Total number of questions created: 3 Student answers begin: What is 2*3 ? = 8 Current Success rate for student: 0% What is 2*4 ? = 8 Current Success rate for student: 33.333333333333% What is 2*5 ? = 10 Current Success rate for student: 66.666666666667% Total amount of correct answers from student: 2 out of 3 By using the Static method and properties you can view the overall status of an object with out having to recalculate all of the stats to see how a student is currently doing.