|
-
August 3rd, 2007, 02:09 PM
#1
Fed up of a concept in c++
Hello friends ,
I am learning c++ and am a n00b in c++ , for one month i am trying to understand a concept but unable to , here it is :
when we create a class like:
Code:
class daemon{
int data;
public:
void _function(){}
}
now i want to ask that if we create a object with in the class why _function inside class can enter private data of that object too ?? it has only access to pvt data of that class but why objects too??
as you all know that i am a n00b , please teach me as a n00b i'll be yours debtor if you can solve my this problem !!
Last edited by daemonakadevil; August 3rd, 2007 at 02:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|