Ahhh, that makes total sense. I'm going over Java OOP examples and
trying to convert them over into CFML to create more OOP tutorials for
my blog over at coldblue.net.

I guess creating polymorphic arguments would be the same convention?
It's just overriding methods. Here's an example in Java:

public class myCars {
   public static void main(String[] args){

      car getSpeeds = new car();
      carType fCar = new m5;
      carType sCar = new ferrari();

      getSpeeds.speed(fCar);
      getSpeeds.speed(sCar);
   }
}

public class ferrari extends car {
   void speed() {
      System.out.println("How do I slow this thing down!");
   }

}

public class m5 extends car {
   void speed(){
      System.out.println("I'm really speeding now!");
   }

}

public class car {
   public void speedCar(carType x){
      x.speed();
   }
}

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to