Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36080

Help in codes please

Newsgroups comp.lang.java.programmer
Date 2016-12-10 16:27 -0800
Message-ID <f1cf313a-a153-4865-92a0-def56b5147fc@googlegroups.com> (permalink)
Subject Help in codes please
From kainattshafiq90@gmail.com

Show all headers | View raw


Hi, can someone please help me code this??? 

Gadget class has four attributes, which correspond to the model, 

- The price (in pounds)
- The weight (in grams)
- The size (e.g. “71mm x 137mm x 9mm”) respectively


The price is a decimal number
- The weight is an integer
- The model and the size are strings of text

Each attribute is initialized in the constructor, by being assigned the value of one of the constructor's four parameters, and each attribute has a corresponding accessor method. 

A display method will output (suitably annotated) the model, the price, the weight and the size.

Please someone help me. 

THANK YOU SO MUCH

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Help in codes please kainattshafiq90@gmail.com - 2016-12-10 16:27 -0800
  Re: Help in codes please Martin Gregorie <martin@address-in-sig.invalid> - 2016-12-11 10:00 +0000
  Help in codes please lewbloch@gmail.com - 2016-12-11 08:54 -0800

csiph-web