Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Professional C++
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2010, 04:17 AM
Authorized User
 
Join Date: Mar 2008
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.
 
Old February 2nd, 2010, 05:17 AM
Authorized User
 
Join Date: Mar 2008
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.





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





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