About Question enthuware.ocpjp.v7.2.1545 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
renatumb
Posts: 47
Joined: Mon Apr 08, 2013 7:55 pm
Contact:

About Question enthuware.ocpjp.v7.2.1545 :

Post 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;
}

admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Yes, technically, it would be valid.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 225 guests