Proxy classes

J

Jonas Cord

What is the use of proxy classes? From what I understand they are used
to hide the implementation details of a class. But can't you obtain
exactly the same results by splitting the class definition and
implementation between a .H file and a .CPP file?
Thanks,

Jonas
 
R

Ron Natalie

Jonas said:
What is the use of proxy classes? From what I understand they are used
to hide the implementation details of a class. But can't you obtain
exactly the same results by splitting the class definition and
implementation between a .H file and a .CPP file?
Thanks,
No, because even the private parts of a class definition need to
be declared in the .H file. Even if they weren't the size of
the object would have to be exposed somehow. Hence anybody
who uses the public interface (the .h file) would have to
recompile/change when any internal changes.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,206
Latest member
EpifaniaMc

Latest Threads

Top