get und set methoden java
this.getLukas();
public int getLukas() { return this.lukas }
get und set methoden java
this.getLukas();
public int getLukas() { return this.lukas }
java get set
class Employ
{
public String name; //name of the employ
public String getName() //Get the name
{
return name;
}
public String setName(String newName) //Set the name
{
this.name = newName;
}
}
get set
class Thing {
private int secret; // This is a field.
public int Secret { // This is a property.
get {
Debug.Print("Somebody is accessing the secret!");
return secret;
}
set {
Debug.Print("Somebody is writing to the secret!");
secret = value; // Note the use of the implicit variable "value" here.
}
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us