0
POO Question
class Student: def _ (self, name): self.name = name test = Student("Bob") What I will put in the name of the function definition? With init doesn't serve, I need another thing
3 Antworten
+ 6
Jan Markus I believe in Spanish, "POO" is used instead of "OOP", which admittedly gave me a chuckle upon first seeing this.
I originally read something that made me think someone was calling OOP to be POO. 😂🤣
In English, (OOP) refers to:
Object Oriented Programming
In Spanish, (POO) refers to:
Programación Orientada a Objetos
Which would read similar in English as:
Programming Oriented Objects
+ 5
It should be __init__
with double underscores
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2467/
+ 1
Do you mean __init__? Or you need something that is not for the initialization?
btw, double check the indentation of test=Student("Bob")