class Dog():
"""this class definite a class of a dog"""
def __init__(self,name,age,master='robert'):
self.name = name # attribute
self.a = age # attribute
self.m = master # attribute
self.typee = 'animal' # attribute
def sit(self): # method mush have a self
print(self.name.title() + " is sitting.")
def roll_over(self):
print(self.name.title() + " rolled over.")
def master(self):
print(self.name.title() + " 's master is " + self.m)
def type(self):
print(self.name.title() + " 's type is " + self.typee + ".")
def age(self):
print(self.name.title() + " 's age is " + self.a)
def met(self): #every method mush have a postional argument self
print("This is a method!!!")
dog1 = Dog('robert','25')
dog1.sit()
dog1.roll_over()
dog1.master()
dog1.type()
dog1.age()
dog1.met()