All pastes #934309 Raw Edit

SHM1L

public java v1 · immutable
·published 2008-03-08 19:25 UTC
rendered paste body
public class Select {    public static void main(String[] args)    {        Select s = new Select();        s.getObject(new Driver("Guy","Israel",25, 1));        s.getObject(new Car("Toyota","Corrola",234003));       }        public Object getObject(Object tmpOBJ)    {        return tmpOBJ;    }}// Question:// // Based on this program, the getObject tells which object to be implemented// is there an option to do a revised implementation ? which means:// based on the amount of the parameters to pick the asssoicated object.