Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Třída
- class Car:
- this.brand = ''
- this.type = ''
- this.color = ''
- this.fuel = ''
- def get_fullname(self):
- return this.brand + ' ' + this.type
- #Instance
- car1 = Car()
- car2 = Car()
- car3 = Car()
Advertisement
Add Comment
Please, Sign In to add comment