Click here to Skip to main content
15,906,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to take screenshots Pin
David Crow31-Mar-04 2:11
David Crow31-Mar-04 2:11 
GeneralRe: How to take screenshots Pin
Anonymous31-Mar-04 7:58
Anonymous31-Mar-04 7:58 
GeneralConvert C++ DLL to VB.net Help Pin
nelsonbd30-Mar-04 22:53
nelsonbd30-Mar-04 22:53 
GeneralRe: Convert C++ DLL to VB.net Help Pin
Antony M Kancidrowski31-Mar-04 0:38
Antony M Kancidrowski31-Mar-04 0:38 
GeneralRe: Convert C++ DLL to VB.net Help Pin
Alexander M.,31-Mar-04 2:04
Alexander M.,31-Mar-04 2:04 
GeneralRe: Convert C++ DLL to VB.net Help Pin
antlers31-Mar-04 6:54
antlers31-Mar-04 6:54 
GeneralRe: Convert C++ DLL to VB.net Help Pin
Mike Dimmick31-Mar-04 12:51
Mike Dimmick31-Mar-04 12:51 
Generalcopy constructor / assignment operator Pin
GDavy30-Mar-04 22:48
GDavy30-Mar-04 22:48 
Hi guys,

A question:
I got a class A that has a overridden copy constructor and assignment operator.
I derive class B from A.

*If B does not have an overridden copy constructor or assignment operator will the assignments of objects of class B invoke the copy constr. or assign operator of class A for the A part of class B(if you know what I mean)?

eg:

class A
{
class A();
class A( const A& a);
A& operator=(const A& a);
...
};

class B: public A
{
...
};

int main()
{
B obj1, obj2;
...
obj2 = obj1; //is operator= of class A called?
B obj3 = obj2; // is copy construct of class A called?
}

Greetings,
Davy
GeneralRe: copy constructor / assignment operator Pin
22491730-Mar-04 23:13
22491730-Mar-04 23:13 
GeneralRe: copy constructor / assignment operator Pin
Prakash Nadar31-Mar-04 5:04
Prakash Nadar31-Mar-04 5:04 
GeneralRe: copy constructor / assignment operator Pin
David Crow31-Mar-04 2:14
David Crow31-Mar-04 2:14 
Generalrandom number Pin
shiva shankar30-Mar-04 22:21
shiva shankar30-Mar-04 22:21 
GeneralRe: random number Pin
SJolly30-Mar-04 23:11
SJolly30-Mar-04 23:11 
GeneralRe: random number Pin
shiva shankar30-Mar-04 23:28
shiva shankar30-Mar-04 23:28 
GeneralRe: random number Pin
Antony M Kancidrowski30-Mar-04 23:49
Antony M Kancidrowski30-Mar-04 23:49 
GeneralRe: random number Pin
SJolly30-Mar-04 23:50
SJolly30-Mar-04 23:50 
GeneralRe: random number Pin
Tim Smith31-Mar-04 3:53
Tim Smith31-Mar-04 3:53 
GeneralRe: random number Pin
SJolly31-Mar-04 4:53
SJolly31-Mar-04 4:53 
GeneralRe: random number Pin
David Crow31-Mar-04 2:21
David Crow31-Mar-04 2:21 
GeneralRe: random number Pin
Paul Ranson31-Mar-04 2:20
Paul Ranson31-Mar-04 2:20 
GeneralRe: random number Pin
Tim Smith31-Mar-04 3:57
Tim Smith31-Mar-04 3:57 
GeneralRe: random number Pin
Paul Ranson31-Mar-04 4:20
Paul Ranson31-Mar-04 4:20 
Generalmpeg streamer Pin
Florin Ochiana30-Mar-04 22:10
Florin Ochiana30-Mar-04 22:10 
GeneralDirectInput Gamepad axes name localization.... Pin
haust30-Mar-04 21:59
haust30-Mar-04 21:59 
Generalabout socket Pin
Member 98096830-Mar-04 21:32
Member 98096830-Mar-04 21:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.