Sign in with
Sign up | Sign in
Your question

Get and set method

Tags:
  • Security
  • Java
  • Business Computing
Last response: in Business Computing
Share
February 26, 2013 1:58:52 AM

Good day
I just want to ask how can i use the get and set method in java using jcreator.....

More about : set method

February 26, 2013 2:50:50 AM

i prefer eclipse as my ide btw

public class ClassExampe {

String name;
String course;

public String getName ( )
{
return name;
}

public void setName (String studentName)
{
name = studentName;
}

public String getCourse ( )
{
return course;
}

public void setCourse (String studentCourse)
{
course = studentCourse;
}
}
m
0
l
!