Home page

Monday, October 27, 2014

Setter Getter


public class SetDetails {

    private static String uName="abc@xyz.com";
    private static String password="123";
    private static String name="samip";
   
    public static String getName() {
        return name;
    }
    public static void setName(String name) {
        SetDetails.name= name;
    }
    public static String getuName() {
        return uName;
    }
    public static void setuName(String uName) {
        SetDetails.uName = uName;
    }
    public static String getPassword() {
        return password;
    }
    public static void setPassword(String password) {
        SetDetails.password = password;
    }

   
   
   
}

No comments:

Post a Comment