...
Code Block | ||
---|---|---|
| ||
// Constructor Call Point p1 = new Point(2, 5); Point p2(2,5); // Assigning attributesattribute of objectvalues Point p3 = new Point{x = 2, y = 5}; Point p4{x = 2, y = 5}; |
...
...
Code Block | ||
---|---|---|
| ||
// Constructor Call Point p1 = new Point(2, 5); Point p2(2,5); // Assigning attributesattribute of objectvalues Point p3 = new Point{x = 2, y = 5}; Point p4{x = 2, y = 5}; |
...