Have you fixed the problem? Does the code compile now?
What relationship is there between a double (the value in z) and a Parent object?
Is there a double value in the Parent object you want to...
Type: Posts; User: Norm
Have you fixed the problem? Does the code compile now?
What relationship is there between a double (the value in z) and a Parent object?
Is there a double value in the Parent object you want to...
Look at this line. It defines the myShape array to be of type Parent:
Parent myShape[] = new Parent[10];
Is your editor's Find function not working? If you edit your code and do a Find on myShape...
Do you understand what the compiler is complaining about?
A double value is not an object of type Parent.
What datatype is z?
What datatype is the myShape array?
Please post the full text of the error messages.
You get that when the right side of an assignment statement is a different type from the left side.
For example:
String aStr = 123; // String...