You are on page 1of 1

1.

Green
2. Red
3. Green
4. Red
5. Illegal; crunch is private to green class
6. Legal
7. ..
public int blue (double x){
double temp = peabody(x);
System.out.println(temp);
return (int)mm;
}
8. ..
public int blue(double x){
System.out.println(xx);
.
9. Final & abstract conflict with each other to make the code useless.
10. Yes: peabody();
11. ..
13. B, a, a, d
14.
15. Yes it works
16. Parent
17. rubyDoo() and busterStein()
18. Legal because the subclass object is copied to a superclass, not vice versa
19. No it can only access method which belong to the superclass
20. Legal, but some stuff may be overriden

You might also like