Abstract class reference

Posted by AlgoMan on Stack Overflow See other posts from Stack Overflow or by AlgoMan
Published on 2010-06-07T09:29:42Z Indexed on 2010/06/07 9:32 UTC
Read the original article Hit count: 381

Filed under:
|

Can i have a class

Class Room{ ~Room(); virtual cost() =0; }

Class Hotel{ map rooms; /* */ };

will my hotel become abstract ? Can it hold the list of concrete Room objects that are derived from Room ?

© Stack Overflow or respective owner

Related posts about c++

Related posts about virtual-functions