Hey guys I have a study guide that I need some assistance with if possible. it is basically definitions.
Classes={}
Assume these statements are working with classes and objects:
Attribute?property
Instance
Encapsulation
Also I need to tell what this code does. I am not good with classes at all please can you break down each line.
class Critter(object):
def __init__(self:
print "A new critter is born!"
def talk(self):
print "\nHi. I am an instance of class critter.
#main
crit1 = Critter()
crit2 = Critter()
crti1.talk()
crit2.talk()