I've got some classes and all of those can be created with one of two methods. First is creating by assigning values from arguments of constructor and second assigns values from string and that is done with method that is needed by interface( but unfortunately it can't contain constructor)