1 2 Previous Next 16 Replies Latest reply: Dec 20, 2008 2:14 AM by 807589 RSS

    How to access elements of an Abstract Class?

    801510
      I was wondering if I have an abstract class like this:

      public abstract class AbsractServer
      {
      protected String name;
      protected String location;
      public AbstractServer(String serverName, String serverLocation){ }
      }

      is there a way i can access any of the strings in there using a method like this

      public Server[] findServers(Server[] AbstractServer)
      {

      }
      can that be done?
        1 2 Previous Next