Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object?
LevelSix
12
Junior Poster in Training
Recommended Answers
Jump to PostTrying to answer quickly: I think you can write a class for Rectangle - what you define/mean for a rectangle---can write some methods to determine that it is a rectangle - check the length of the arms that each pair are equal. Check for angles [90 degrees] between arms.
…
All 4 Replies
sayedjustetc
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
ejosiah
4
Junior Poster
LevelSix
12
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.