import abc
class Animal(metaclass=abc.ABCMeta): # Can only be inherited, not instantiated
@abc.abstractmethod
def run(self):
pass
@abc.abstractmethod
def eta(self):
pass
class Pople(Animal):
def run(self):
print('Pople is runing')
def eta(self):
print('Pople is etaing')
class Pig(Animal):
def run(self):
print('Pig is runing')
def eta(self):
print('Pig is etaing')
class Dog(Animal):
def run(self):
print('Dog is runing ')
def eta( self):
print('Dog is etaing')pople1 =Pople()pig1 = Pig()dog1 = Dog()< /span>< /span>
Abstract class and normalization
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2815 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC