S
Scott M.
What are the advantages of defining a class as part of another class
definition (nesting classes)?
definition (nesting classes)?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* "Scott M. said:What are the advantages of defining a class as part of another class
definition (nesting classes)?
Because a strongly typed collection of Nodes is NOT a LinkedList! (CS 101)Why not just make a strongly type collection that holds only "Nodes"?
Jay B. Harlow said:Scott,
Because a strongly typed collection of Nodes is NOT a LinkedList! (CS 101)
* "Scott M. said:Why would there be less source files since non-nested classes can be written
into one source module?
The nested class' code is part of the surrounding class' code.
Scott M. said:I usually like to put classes from the same namespace into the same source
code file, unless there is some compelling reason not to (like too many to
keep track of, etc.).
One Handed Man ( OHM - Terry Burns ) said:Wait until VS2005 comes out, in that you have 'Partial' classes, which
allows you to split the implementation of a class over many source files.
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
Scott M. said:I usually like to put classes from the same namespace into the same
source
code file, unless there is some compelling reason not to (like too many
to
keep track of, etc.).
Scott M. said:I've seen that. While is opens up possibilities, I believe I'll use that
sparingly.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.