namespace

Joined
Feb 4, 2010
Messages
1
Reaction score
0
Hey
I was wondering why this is possible :
Code:
class A{
public:
	int iAddition2(int arg1, int arg2) {
		return iAddition(arg1, arg2);
	}
	int iAddition(int arg1, int arg2) {
		return arg1 + arg2;
	}
};


and not this:

Code:
namespace myNS {
	int iAddition2(int arg1, int arg2) {
		return iAddition(arg1, arg2);
	}
	int iAddition(int arg1, int arg2) {
		return arg1 + arg2;
	}
}
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top