cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How are c++ class objects stored in memo
How are c++ class objects stored in memory?
Aug 23, 2014 at 9:52am UTC
datkenwel2014
(1)
For example when I have:
Class A{
B objectB;
};
Now when I instantiate the object of class A like:
main(){
A objectA;//option 1
A* pObjectA = new A();// option2
}
How is objectB stored in memory (stack heap etc.) for both options??
Thanks!!
Aug 23, 2014 at 10:15am UTC
tmason
(112)
http://lmgtfy.com/?q=how+is+a+c%2B%2B+class+stored+in+memory
Topic archived. No new replies allowed.