Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

The this(Keyword)

public class Person {
    String name;
    int age;
    char gender;
    public Person(String name, int age, char gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }
}
Source by learn.masaischool.com #
 
PREVIOUS NEXT
Tagged: #The
ADD COMMENT
Topic
Name
5+3 =