We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Does it make any sense to make RectangleArea a derived class of Rectangle? A rectangle's area is not a rectangle itself.
That's like saying a person's eyes color is a person.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Rectangle Area
You are viewing a single comment's thread. Return to all comments →
Does it make any sense to make RectangleArea a derived class of Rectangle? A rectangle's area is not a rectangle itself. That's like saying a person's eyes color is a person.