using a constructor to implement another class code example Example: java constructor class MyClass { public MyClass () { //constructor code } }