E.11. Declaring Methods
This example declares a method called setQuantity that accepts a variable called qty of type int.
public void setQuantity(int qty);
This example declares a method called getQuantity that returns a variable of type int.
public int getQuantity();
Get Java™ for ColdFusion® Developers now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.