class BaseData{
public BaseDataaddData(T content) {
return this;
}
}
class StringData extends BaseData{
public StringData addData(String content) {
return this;
}
}
class Test{
public static void main (String[] args) {
StringData sd=new StringData();
Object x=sd.addData("ss");
System.out.println(x instanceof StringData);
}
}