i have 10class +1 the main.
i have one class name : box (super class)
one class name : space// (this is include in box,there are parts of it) it has 2 fields power and areaspace.I call2 methods ho(){} em(){} .On this methods i system.out what ever i want messages
one class name : system //(this is include in box,there are parts of it) it has 2 methods yo(){} lo(){} .On this methods i system.out what ever i want messages
one class name : ownerofbox//(this is include in box,there are parts of it) on this name i have field name ,surname ,adress
one class name : ball (extends from box) . numbers of different design
one class name : phone(etends from box).a field only number buttons
one class name : pc(extends from box) .something that show if it has near of it another pc
every object of it include newOwner(){} and the type(){} .On the type(){} needs messages for the new owner ."You good <owner name>" for objects phone.
the messages for ball:"this is a < x> <owner name>" (on x there is design).
For the objects pc message is :"You need change <owner name>"
one class name :hio(extends from pc)//i change the name of the mark of the pc and down the same
one class name :son(extends from pc)
one class name :kon(extends from pc)
hlio is for working ,son is for fun , kon is for games.
On my main program : there is a buisness that it has P boxes(the P should be given by command line or if not given by command line to be by UserInput).When all boxes will completed the user should give by keyboard how much are ball how much are phone and how much are pcs.This will be repeated until the add is different the P.All objects are initialized( by somes constructors) except of owenerofbox.
Find all costs of boxes and the categories(ball,phone,pc).This will be done by methods which will return if type is the ball ,if the type is phone ,or if is pc.The buisness will increase some categories: a)the phone that weight small and equal to 100 will increase 9% .If more than 100 will increase 20% and also this for pcs.When you done that
you should appear a list with the new prices