I have a parent class Table that is extended by children.
Parent Class:
abstract class Table{
public static String getFullTable(){
return child.DBTABLE + '.' + child.DBNAME;
}
}
A Sample Table
class User extends Table{
public static final String DBTABLE = "user";
public static final String DBNAME = "test";
}
When calling User.getFullTable() I want to retrieve the value test.user.
Can this be done?