Message from C, C++ talks

June 2019

— It defines what hapoens when you copy an object

— Ohokie 👍

— For pure virtual class? (Interface in Java)

— Afees

— 

When dealing with polymorphism you want to make sure the appropriate derived destructor is called. You can ensure this by making it virtual.

— How to do use only one if statement then multiple cases?

— Why don't you use switch?
Moreover, polymorphism can replace if/switch as a distributor.

— If I try to use if statement then.
How to do?

— If elseif elseif

— No no only one using if

— Then use & and or in if statement

— Use nested if

— This is right?

— No

— Does it even compile?