Accessing a class based on a variable

Discussion in 'Plugin Development' started by Digital64, Feb 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Digital64

    Hey,
    I was wondering if it is possible to pass the name of a class and a method to another class in my program and have that program actually execute that method, in that specific class?
    Sorry if this is a little bit confusing,
    64
     
  2. Offline

    ZeusAllMighty11

    uhh like this?

    Code:
    public ClassName classvariable = new ClassName(parameters);
     
    public Int getScore(Player p){
         return classvariable.getScore(p);
    }
     
    
     
Thread Status:
Not open for further replies.

Share This Page