Re: How many bytes per Italian character?
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 08 Apr 2007 19:30:52 GMT
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
news:u0ERs%23feHHA.4916@xxxxxxxxxxxxxxxxxxxxxxx
You failed your interview.
You CAN implement pure virtual function. Your implementation will be used
when it's called from your class constructor or destructor.
Ah, thanks. Learn something new every day! :-)
But I don't know what advantage it is to have this obscure behavior. If a
fixed method is to be called from a constructor or destructor, there is no
reason to make it virtual and mislead the user of the class into thinking an
overridden one of the same name in a derived class will be called. Unless
there is some practical purpose for this (and by practical, I mean something
other than someone getting a PhD thesis from it), then I have to throw this
into the part of C++ that should not be used (along with most of the
esoteric usages of templates).
-- David
.
- Follow-Ups:
- Re: How many bytes per Italian character?
- From: Alexander Grigoriev
- Re: How many bytes per Italian character?
- From: Doug Harrison [MVP]
- Re: How many bytes per Italian character?
- From: MrAsm
- Re: How many bytes per Italian character?
- References:
- Re: How many bytes per Italian character?
- From: Joseph M . Newcomer
- Re: How many bytes per Italian character?
- From: MrAsm
- Re: How many bytes per Italian character?
- From: Joseph M . Newcomer
- Re: How many bytes per Italian character?
- From: Alexander Grigoriev
- Re: How many bytes per Italian character?
- From: Joseph M . Newcomer
- Re: How many bytes per Italian character?
- From: Nobody
- Re: How many bytes per Italian character?
- From: Joseph M . Newcomer
- Re: How many bytes per Italian character?
- From: Nobody
- Re: How many bytes per Italian character?
- From: David Ching
- Re: How many bytes per Italian character?
- From: Alexander Grigoriev
- Re: How many bytes per Italian character?
- Prev by Date: Re: Are _T() and TEXT() macros equivalent?
- Next by Date: Re: How many bytes per Italian character?
- Previous by thread: Re: How many bytes per Italian character?
- Next by thread: Re: How many bytes per Italian character?
- Index(es):
Relevant Pages
|
Loading