java how to define constructor\ code example Example: java constructor class MyClass { public MyClass () { //constructor code } }