permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Inner classes in the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Inner classes in the" Watch "Inner classes in the" New topic

Inner classes in the

Krzysiek Hycnar
Ranch Hand

Joined: Jan 02, 2004
Posts: 74
Hi all,

This's been my first post here (I previously posted to SCJP and SCWCD forums)

I've got a question on using inner classes in SCJD assignment, namely - do I have to generate accessor/mutator pair for every property of an inner class or it's acceptable to utilize the special relationship that is between inner and outer class and use them in a regular manner ex. inner_class_instance.inner_class_property ??

Frank Hardy

Joined: Aug 17, 2004
Posts: 13
Hi Krzysiek,

I use inner classes too (I like them ) and I'm also unsure about this. Most of my inner classes are private and used as pure data structures. Hence, most of their member attributes are final and then I used not to implement the accessor methods for these attributes. I described it in the java doc. I hope this may satisfy the examiners.



SCJP 1.4
I agree. Here's the link:
subject: Inner classes in the
It's not a secret anymore!