Off Topic A place to kick back and discuss non-Monte Carlo related subjects. Just about anything goes.

Is anyone here good with writing code in java?

Thread Tools
 
Search this Thread
 
Old Feb 1, 2012 | 12:41 PM
  #1  
red04montels's Avatar
Thread Starter
|
Monte Of The Month -- September 2010
10 Year Member5 Year Member3 Year Member1 Year Member
Joined: Aug 2009
Posts: 9,380
From: Wisconsin
15 Year Member
Default Is anyone here good with writing code in java?

Like the title says, is anyone here good with writing code in java? I have trouble in java and this last assignment has completely lost me. lol here's the assignment, let me know if you can help me out, it would be greatly appreciated!

The assignment is to implement a text-based graphics program using composition,
inheritance relationships and polymorphic behaviors (similar to the one we did in class
together) to the one the author does in chapter 9 of the textbook.


We wish to produce a “shapes” taxonomy that would allow for a hierarchy of graphical
objects; such as Points, Lines, Circles, Rectangles, Cylinders and Cubes to be “drawn”.
In order to keep things simple, our drawing for this assignment will only amount to
sending text out to the console (hence the term “Text Graphics” for our assignment).

Arrange these as classes in a hierarchy and associate drawing behavior with each class
that is sensible to draw. (The Shapes class, for instance, would be an abstract class since there’s no reasonable way to draw a generic shape.) The drawing behavior for this
assignment need only consist of text output to the console that states where the shape is and how it would draw itself (just as we did in the example from class).


In your implementation be sure to use both inheritance and composition where
appropriate. Remember, inheritance is called an “IS-A” relationship and composition is
called a “HAS-A” relationship. This rule-of-thumb design principle works for most
simple taxonomies (such as this one).


You’ll also need to use polymorphism in your implementation (i.e. when implementing
the draw() method) so that each shape draws itself appropriately when sent the
draw() message.
 
Old Feb 1, 2012 | 12:43 PM
  #2  
mousehousemoparman's Avatar
Joined: Aug 2011
Posts: 3,226
From: Lakeland, Florida
Default

It's all over my head. I thought maybe a new brand of coffee. Lol
 
Old Feb 1, 2012 | 12:46 PM
  #3  
04chevyboy's Avatar
Joined: Jun 2011
Posts: 1,577
From: Whitney Point,New York
Default

Originally Posted by mousehousemoparman
It's all over my head. I thought maybe a new brand of coffee. Lol
Hahaha:p
 
Old Feb 1, 2012 | 01:07 PM
  #4  
Tadcaster's Avatar
Monte Of The Month -- August 2011
Monte Of The Month -- April 2014
3 Year Member1 Year Member
Joined: Apr 2009
Posts: 6,407
From: Mason, MI USA
5 Year Member
Default

Sorry I am old school (RPGILE) Java is not my cup of tea... err I mean coffee
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Space
Off Topic
29
Jan 15, 2013 05:07 PM
knightfan26917
Off Topic
4
Jan 11, 2012 10:15 PM
BlackRainSS
General Monte Carlo Talk
8
Aug 7, 2011 09:58 PM
knightfan26917
Off Topic
4
May 15, 2011 01:13 PM
SpinEm_90
Detailing
18
Apr 26, 2011 12:07 PM




All times are GMT -5. The time now is 05:28 AM.