Jon,
The use of inner classes can, at times, provide opportunities for the Java
compiler to generate more efficient code. One example is the use of a
private inner class which restricts accessibility to that
the inner class (its type) from the outside world, thus
eliminating type-coding dependencies.
You can
read more about this perspective from Bruce Ecke's Thinking in Java book, which
is an excellent resource.
Sunny
--------Original Message-----
From: Jon D. Hatton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 11:07 AM
To: jdjlist
Subject: [jdjlist] Inner classI have the need to use an inner class and Im curious if there is any advantage to doing thisover just making a new seperate class..putting aside the encapsulation issues of course.My usage of this inner class is a simple structure to support some specific functionalityin the parent class.. ie. a timer collection of current timers in process..Thanks for any comments---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
