[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
Jacquie,
Welcome back!
I've seen some examples where methods are provided for enums. What do you think of this practice?
For one or two one line methods it is somewhat clear. After that it looks like a bunch of subclasses in one file to me.
Originally posted by miguel lisboa:
i'd like to know how you relate your book to introducing OO and design patterns: is that your main goal?
Originally posted by Jeanne Boyarsky:
I've seen some examples where methods are provided for enums. What do you think of this practice?
For one or two one line methods it is somewhat clear. After that it looks like a bunch of subclasses in one file to me.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Hi Jeanne!
It's true that it can be overdone. If used selectively, it's a great feature, though - for example for providing a Visitor for the enum, or for implementing simple States/Strategies!
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
I guess it's just a matter of refactoring once the class gets too involved.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Daslan Govender:
Hi Jackie
Just wanted to know how do your tackle the concept of pointers in your book? Do you refer to them as pointers or references or anything else?
Tks
D