For a lab, my instructor asked us to include an assignment operator with our class, but to hide it. Does this mean to declare it as private and just leave an empty implementation? Is this common/useful?
Answered by vijayan121 1,152 in a post from
Jump to Post
> declare it as private and just leave an empty implementation?
ideally, declare it as private and do not define it.
> Is this common/useful?
useful, yes. common, not all that much.
if there is a class that you write (for example a window), and want its instances not …
All 3 Replies
vijayan121 1,152 Posting Virtuoso
skatamatic commented: To the point and accurate +3
wt1099 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.