Classes | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Classes

This isn’t really a question, but just to make sure, to call a method in a class, would you do the same thing? Or would you state the class first or something?

29th Oct 2019, 7:44 PM
Jake
2 ответов
+ 1
You have to state the class first. Also you have to create a instance of the class. Have a look at this code. https://code.sololearn.com/cvksu1vxijzh
29th Oct 2019, 9:23 PM
sneeze
sneeze - avatar
0
Thanks!
30th Oct 2019, 10:50 AM
Jake