Posts by Nuno Dias • 11 points
1 post
-
0
votes1
answer413
viewsQ: Extending Parent Class method in C++
I have a sphere class : class CEsfera{ protected: double centro[3]; double raio; public: CEsfera(); CEsfera(double x, double y, double z, double r); mostra() { for (int i=0; i<3; i++) cout…