Posts by Deltab • 143 points
1 post
-
4
votes1
answer57
viewsQ: How to initialize objects already declaring values?
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…