Welcome to Dream.In.Code
Become a Java Expert!

Join 150,194 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,035 people online right now. Registration is fast and FREE... Join Now!




Creating Java class

 
Reply to this topicStart new topic

Creating Java class, Invoice Class

cking79
26 Sep, 2008 - 05:36 PM
Post #1

New D.I.C Head
*

Joined: 26 Sep, 2008
Posts: 1

Im trying to create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. I want the invoice to include four pieces of info as instance variables , part number, part description, quantity of item being purchased, and price per item. and have a constructor. With a set and a get method for each instance variable. Also I need a method named getInvoiceAmount that calculates the invoice amount then returns the amount as a double value?

Please help?
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Creating Java Class
26 Sep, 2008 - 05:37 PM
Post #2

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 04:24AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month