A method that modifies the value of a property is named setXxx(), where xxx is the property name. : JavaBeans « Object Oriented « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Object Oriented » JavaBeans 
6.10.3.A method that modifies the value of a property is named setXxx(), where xxx is the property name.
public class MainClass {
  private int iValue = 0;

  public static void main(String[] argv) {
    System.out.println();
  }
}
6.10.JavaBeans
6.10.1.JavaBeans Naming Convention
6.10.2.A method that returns the value of a property is named getXxx(), where xxx is the property name.
6.10.3.A method that modifies the value of a property is named setXxx(), where xxx is the property name.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.