发信人: chuncl (ray), 信区: JobHunting
标 题: definition of pure virtual funciton
发信站: BBS 未名空间站 (Thu Oct 9 12:15:04 2008)
as we know that pure virtual method function typically have a declaration (
signature) and no definition (implementation).
but in an interview, the interviewer told me we CAN or compiler permit us
give definition of pure virtual function.
is it right? thanks
发信人: zlike (最终幻想), 信区: JobHunting
标 题: Re: definition of pure virtual funciton
发信站: BBS 未名空间站 (Thu Oct 9 15:05:05 2008)
usually for dtor(), it's going to be called by all inherited class, but you
also want to FORCE all inherit class to define its own dtor(). In this case,
you must give definition to base dtor() and make it pure virtual.
Friday, October 10, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment