Image

Imagelupinehunter wrote in Imagecpp 😡dirty

Listens: Korn - Blind

poly

Talking about polymorphism, I remember seeing people arguing that pointer casts are against oop philosophy.

So should I feel bad when I have an array of objects that I store my square and circle in,
differantiate between them based on the type field I have in object class
and static_cast<square *>(object[1]) and use it?