Posts by Stack Overflow • 3 points
1 post
-
-1
votes2
answers44
viewsQ: Use the class to add the object itself into a vector that stays in another object
In python I made the following code: class Escola: def __init__( self, escola_nome ): self.escola_nome = escola_nome self.alunos = [] class Aluno: def __init__( self, nome ): self.nome = nome…