Added a Java example for inheritance gotcha
Added a Java example for inheritance gotcha

bonniecpk/scripts,bonniecpk/scripts,bonniecpk/scripts,bonniecpk/scripts,bonniecpk/scripts,bonniecpk/scripts,bonniecpk/scripts