Is it legal?Can I have a constructor that does:public Ship( String S ) {if( S.equals( "Tug" ) ){this=new Tug( S );}}