We help IT Professionals succeed at work.

Container Class vs. Nested Class

soodsandeep
soodsandeep asked
on
330 Views
Last Modified: 2006-11-17
Hello Experts, could any one please define Contatiner Classes and Nested Classes.
in most text books i find both mixed or in one book what they call container class is called nested class in some other book.
Please provide some help oa a good link on this.
Thaks.
Comment
Watch Question

Top Expert 2004

Commented:
Just briefly:

It's about encapsulation.

Container classes are normally templates, such as the std::vector class.
Nested classes are ... nested classes. Like
class a{
[...]
class b{};
};

A class in a class. Advantage is that b's methods can see a's methods.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2004

Commented:
Yes. More nicely said ;)
CERTIFIED EXPERT
Top Expert 2012

Commented:
Any chance we can see some movement on these very old open questions:

1 04/24/2003 40 Hard disk management  Open Hardware
2 12/05/2003 100 C++ Classes.  Open C++ Programming
3 12/06/2003 70 c++ constructors  Open C++ Programming
4 12/16/2003 50 exporting a sequence and a view.  Open Oracle
5 02/07/2003 50 Polymorphism  Open Programming Languages
6 11/01/2003 100 inserting into oracle from vb  Open Visual Basic
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.