Simple Class:
Explanation of the Below Code:
- We create a simple class.
- We create a forfun-named class.
- We define a fun-named method with a self-parameter that returns the string in the print function.
- Then we create an a-named instance(object) of the forfun class.
- Then we call the fun method using a-named instance(object).
Comments
Post a Comment