Discussion :: Inner Classes - Finding the output (Q.No.2)
|Avi said: (May 14, 2013)|
|Is this "public Horse(String s)" Parametric constructor?|
|Sai said: (Dec 26, 2013)|
|There is no default constructor. So I suspect answer is compilation fails.|
|Mani said: (Jan 27, 2014)|
|Horse h = (Horse) obj;
How it works? Can any one explain.
|Cutie said: (Jun 14, 2016)|
I also want to ask the same question. Can anyone answer this? Please.
|Suresh N said: (Apr 7, 2017)|
|Output is compilation error.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Anyone help me to resolve it.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.