Answers for "why use generic in real life in programming"

0

why use generic in real life in programming

public class ObjectContainer {
    private Object obj;

    /**
     * @return the obj
     */
    public Object getObj() {
        return obj;
    }

    /**
     * @param obj the obj to set
     */
    public void setObj(Object obj) {
        this.obj = obj;
    }

}
Posted by: Guest on October-17-2020
0

why use generic in real life in programming

object[] objectArray = new string[] { "string 1", "string 2" };
Posted by: Guest on October-17-2020

Code answers related to "why use generic in real life in programming"

Browse Popular Code Answers by Language