The following code contains two variables: myObj and yourObj.
myObj is declared as type GeneralCase and assigned an instance of a subclass of GeneralCase called SpecificCase.
yourObj is declared as type SpecificCase.


GeneralCase myObj = new SpecificCase();
SpecificCase yourObj;
 
 

Can yourObj can it be assigned to myObj using the following statement?

yourObj = myObj;
No
  • Yes

There are no hints for this question