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;
}
About Question enthuware.ocpjp.v7.2.1545 :
Moderator: admin
-
- Posts: 47
- Joined: Mon Apr 08, 2013 7:55 pm
- Contact:
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1545 :
Yes, technically, it would be valid.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 137 guests