You have not written the function compareArea. You have written the member function compareArea in the RectangleType class, but you're not calling it. You're trying to call some other function.
Class functions are called via an instance of that class, like this.
Yes i have written that function,is at the end. thanks for answering RectangleType RectangleType::compareArea(RectangleType l,RectangleType k) i used this way to write the function and because it is outside the class it can be called just like this compareArea(aRectangle,bRectangle); in main. or i should use someRectangleTypeObjectThatYouMustMake.compareArea(aRectangle,bRectangle);
this? :(
well you're trying to declare CompareArea as a member of RectangleType, inside of the classes definition. So you could do with deleting compareArea in rectangleTypes definition and changing compareArea's type right before main to a char. Also dont forget to change CompareArea's type at the bottom.
[Edit] Oh wait your trying to return the class in that function... i dont actually know if thats possible(or necessary for that matter as your not using the return value in any way)