Answers for "this obj java meaning"

1

this obj java meaning

public class Point {
    public int x = 0;
    public int y = 0;
        
    //constructor
    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }
}
Posted by: Guest on November-12-2020
-1

this obj java meaning

public class Point {
    public int x = 0;
    public int y = 0;
        
    //constructor
    public Point(int a, int b) {
        x = a;
        y = b;
    }
}
Posted by: Guest on November-12-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language