Search:
Forum
General C++ Programming
about member class object
about member class object
May 15, 2009 at 10:43pm UTC
nanger
(71)
if there is a class object which is a member of another class
i.e
1
2
3
4
5
6
7
8
9
10
11
12
class
in {.....};
class
out {
private
: in in_example; ..... };
when the out class constructor is called
will the in class constructor be called or not?
May 15, 2009 at 11:21pm UTC
helios
(17607)
Yes.
Moreover, you can specify which constructor will be called with an initializer list.
Last edited on
May 15, 2009 at 11:29pm UTC
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs