I want to set a method in the parent class, the return value of which would be determined depending on the type of the value field.
value
class A {