0

What is/and whoa and why a use the command class?

I'm have 15 years and recentely started a learning python, and i still don't kwon what's a class.please help me

10th Sep 2019, 1:12 AM
Vinicius Brunelli
Vinicius Brunelli - avatar
1 Odpowiedź
0
A class is structure that contains Information that are separate from the main program. Inside of a class can be various functions For example: I have a class called Dog I'm going to add a function to dog called "bark()" Which prints "woof" So now when ever I declare I make a new instance of class "Dog" I can call the function "bark()" https://www.google.com/search?q=what+is+a+class+in+oython&oq=what+is+a+class+in+oython&aqs=chrome..69i57.11956j0j4&client=ms-android-americamovil-us-revc&sourceid=chrome-mobile&ie=UTF-8
10th Sep 2019, 1:45 AM
Yusuf
Yusuf - avatar