Class, Instance and Method
my first oop code.py
class Dog: def bark(self): print("Woof") fido = Dog() #instance object spot = Dog() fido.bark() #method spot.bark()
Class, Instance and Method
class Dog: def bark(self): print("Woof") fido = Dog() #instance object spot = Dog() fido.bark() #method spot.bark()