I'm trying to access the "Table_Name variable" of the Child class to make the "Load_Data" method do different stuff depending on the child who cast the parent Class.
Also, is there method to know the child who summoned the parent class?
class DataBaseClass(obj):
..
def Load_Data():
if Table_Name?? == Child1.Table_Name:
load_Child1_Data
if Table_Name == Child2.Table_Name:
load_Child2_Data
..
class Child1(DataBaseClass):
..
Table_Name = TableName1
..
class Child2(DataBaseClass):
..
Table_Name = TableName2
..
import *
..
Child1.Load_Data()
Child2.Load_Data()