Page 1 of 1

About Question enthuware.ocpjp.v7.2.1545 :

Posted: Mon Apr 08, 2013 9:54 pm
by renatumb
This question is a little bit confusing.

For me:

class Barbie extends toy { // lower-case doesnt follow the rules, but there is no problem if I create a class toy and Barbie extends from it, so it would attend "Every Child has a toy, wich is of type Barbie"
}

class Child {
Barbie toy;
}

Re: About Question enthuware.ocpjp.v7.2.1545 :

Posted: Tue Apr 09, 2013 5:55 am
by admin
Yes, technically, it would be valid.