How to add attributes Dynamically for java object?

前端 未结 4 413
清歌不尽
清歌不尽 2020-12-15 01:27

Having Student Class.

Class Student{
    String _name;
    ....
    ....

    public Student(){
    }
}

is there any possibility to add dyn

4条回答
  •  佛祖请我去吃肉
    2020-12-15 02:22

    Inject New Methods and Properties into Classes During Runtime

    Is it possible by just doing using Java?

    Creating a Proxy Object

提交回复
热议问题