Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
8
class
Point {
private
double
x =
0
;
// initialization during field definition
private
double
y;
{
y =
2
;
// initialization block
}
}
Enter to Rename, Shift+Enter to Preview
Run