Skip to content
Permalink
7c23e6728c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (14 sloc) 367 Bytes
# object oriented programming manual method
class ballgames:
pass
ballgames_1=ballgames()
ballgames_2=ballgames()
print(ballgames_1)
print(ballgames_2)
ballgames_1.name="basketball"
ballgames_1.availability="weekdays"
ballgames_1.price=20
ballgames_2.name="volleyball"
ballgames_2.availability="weekends"
ballgames_2.price=15
print(ballgames_1.availability)