4
For example in this code:
public class Main
{
public static void main(String[] args)
{
Point p = new Point();
}
}
class Point
{
int x;
int y;
}
There is a way to declare values to x
and y
while executing the command new
?