|
-
Jul 19th, 2007, 05:48 AM
#1
Thread Starter
Addicted Member
what is the difference between a reference and object of a class?
Hi all!
(1):Can u say what are the differences between a reference and a object?
(2): see the following ex:
class Example
{
......;
......;
};
int main()
{
Example e1;
Example e2=new Example();
.......;
}
2(a):I think e1 is reference to Example and e2 is object to Example... Am i right.... ?
2(b):What is the difference between e1 and e2?
Thanks in advance:
regards:
raghunadhs.v
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
|