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
c++
|virtual-functions
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