Méthode and instance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Méthode and instance

Whats the difference between a méthode and an instance https://www.sololearn.com/discuss/1700070/?ref=app

23rd Feb 2019, 11:43 PM
Sâmøčhkã B-ch
Sâmøčhkã B-ch - avatar
2 Answers
+ 3
A method of class is called an instance method when you create an instance of that class your creating an object of that class.
24th Feb 2019, 12:18 AM
D_Stark
D_Stark - avatar
+ 1
A method is a function defined within a class and an instance is a variable defined within a class
24th Feb 2019, 12:01 AM
Harshit Jain
Harshit Jain - avatar