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
SUNIL GUTTA
NA
1k
394.2k
using inheritance write the program for fallowing ?
Nov 3 2013 3:17 PM
Hi
This is my thing i have to do ..
Build a inheritance hierarchy for classes Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Create and use a Point class to represent the points in each shape. Make the hierarchy as deep (i.e., as many levels) as possible. Specify the instance variables, properties, and methods for each class. The private instance variables of Quadrilateral should be the x-y coordinate pairs for the four endpoints of the Quadrilateral. Write a program that instantiates objects of your classes and outputs each object's area (except
Quadrilateral).
Can anyone help it out ..
I am totally went wrong when i read this "
The private instance variables of Quadrilateral should be the x-y coordinate pairs for the four endpoints of the Quadrilateral
"
So help me
Cheers
TY
Reply
Answers (
9
)
to acces databese add csharp not register.
what is the output .. ?