0

actually I wanted to know how to display list or names of subclass which belongs to particular superclass in python. I have 1 superclass named "company" and 2 subclasses "employees" and "customers".

class company:
def-------
----------
print('subclass of company are %d',(?))
class customers(company):
  def--------
    -----------
class employees(company):
def---------
 ------------

what to use in place of ? mark to display subclass of superclass "company"

Mr.Zeus
  • 424
  • 8
  • 25
benny
  • 3
  • 4

0 Answers0