Jump to content

  • Log In with Google      Sign In   
  • Create Account

greenzone

Member Since 24 Jun 2011
Offline Last Active Jun 04 2014 07:57 AM

Posts I've Made

In Topic: private: instance in class with in namespace Question

26 April 2014 - 01:49 PM

Thank you guys for the help and I do appreciate your being able to look past my wack psuedo-code. but thats all i needed to know. the constructor should be called :)


In Topic: private: instance in class with in namespace Question

26 April 2014 - 01:37 PM

no i did not paste the code. its just pseudo coded that i made to elaborate. I am sorry i should have made note of that.

 

this is what i am actually actually asking

 

 

 

 

2 classes in a names space.

 

class A and class B

 

class B has a private: instance of class A.

 

Assuming that the namespace is being used properly,  Would the constructor of class A be called when an instance is created of class B?


In Topic: private: instance in class with in namespace Question

26 April 2014 - 01:33 PM

I have edited it so it will be just as basic as it could possibly be. What I am asking is, with the example shown above, Would the constructor of DogSounds be called if an instance of Bark was created?

 

I mean 2 classes in a names space.

 

class A and class B

 

class B has a private: instance of class A.

 

Assuming that the namespace is being used properly,  Would the constructor of class A be called when an instance is created of class B?


In Topic: private: instance in class with in namespace Question

26 April 2014 - 01:16 PM

Wait your right im sorry the null should be 0. but this does not change the fact that the constructor is not being called.


In Topic: operator overloading member in namespace question

03 April 2014 - 11:26 AM

Ok thank you guys for your help. It worked finally just as I wrote it. Must have been an issue with the intellisense with in vs because i just deleted the name dog and rewrote it and it worked all of a sudden. no more errors. I am positive i did not spell dog right lol. weirdwacko.png  but thank you guys for your time 


PARTNERS