TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dch_tt
NA
3
0
task
Feb 28 2004 6:05 AM
1. Write a class, Triangle, that extends the Shape class (in the Shapes example), and has three instance variables, side1, side2, side3. Your class should: (a) Implement the two abstract methods, area and perimeter. Use the following definition of area: area = SQRT(s(s-side1)(s-side2)(s-side3)), where, s = perimeter/2. (b) Define Properties for each of the three sides. (c) Define a boolean method, IsRightAngled, that returns true if the Triangle is a right-angled triangle.
Reply
Answers (
1
)
Need Help with list boxes and general
another task