Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Professional C++
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional C++
This is the forum to discuss the Wrox book Professional C++ by Nicholas A. Solter, Scott J. Kleper; ISBN: 9780764574849
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 2nd, 2010, 04:17 AM
Authorized User
 
Join Date: Mar 2008
Location: china nantong, HOMETOWN, China.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default how does C++ class allocate in memory image?

as subject.
how does a class allocated in memory image?
i.e.
class A{
public:
A(void);
virtual ~A(void);

public:
virtual void someMethod(void);
virtual void someMethod2(void);

public:
void someMethod3(void);
void someMethod4(void);

private:
int m_nMenber;
};
A a;
how does these virtual functions and normal functions and member data allocate in memory as part of a.

more complicate:
class B : public A{
public:
B(void);
~B(void);

public:
virtual void someMethod(void);
virtual void someMethod2(void);

public:
void subClassMethod(void);
};

B b;
how does new inherited functions and new created functions allocate in memory as part of b,which is inherited from A?

any professional help would be appreciated!
__________________
fight now,date in future.
  #2 (permalink)  
Old February 2nd, 2010, 05:17 AM
Authorized User
 
Join Date: Mar 2008
Location: china nantong, HOMETOWN, China.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

got useful statistics : http://www.openrce.org/articles/files/jangrayhood.pdf[^]
__________________
fight now,date in future.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Application hanging + Cannot allocate servlet inst rajesh_2005 Servlets 0 September 6th, 2005 03:12 AM
could not allocate soace for object table_name yoord SQL Server 2000 4 July 10th, 2004 11:02 AM
How to include c# class and vb class in the .vbprj umeshayk VS.NET 2002/2003 2 January 9th, 2004 12:08 AM
Using Image Icon Class jagz JSP Basics 0 June 17th, 2003 10:18 AM



All times are GMT -4. The time now is 01:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.