fork(1) download
  1. class Pies:
  2. def __init__(self,imie):
  3. self.imie = imie
  4. def _str_(self):
  5. rep = "Obiekt klasy Pies\n"
  6. rep += "imie: ",self.imie,"\n"
  7. return rep
  8.  
  9. def Szczekaj(self):
  10. print("Hau!Hau! Jestem ",self.imie,"\n")
  11.  
  12. pies1 = Pies("Jamnik")
  13.  
  14. pies1.Szczekaj()# your code goes here
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
Hau!Hau! Jestem  Jamnik