Thursday, February 10, 2011

Is Woolite Complete Safe For He Machines

Inheritance in my Project (SHOP)

Good morning, here I show my program codes and with the modifications and additions inheritance relationships.


Class Material.

 pooproyect package; 

public class Material {/ / private class materials Pope

m / / q cantica features
private / / private
product cost c; / / Private

materials and broom / / products manufactured private
mop t / / at the factory
broom
public void () {private int

popotillo;
paloplastico private int / / materials for private int
palomadera brooms;
private int wire;


} public void

mop () {private int

cotton;
mop private int;
paloplastico private int / / materials for making mops
palomadera private int; private int
wire;



}}




Class Order.

 pooproyect package; 

public class Order extends Material {private int copies

/ / number of copies required


standard public void () {

/ / The client will choose the amount of products you wish to agree to
/ / standard from the factory



} public void
custom () {

/ * The client may choose the materials you want for the product you want to purchase
* /

}}



Product Class



 pooproyect package; 


public class Order extends Product {/ * inheritance relationship in order, as the statistics
which is responsible for determining this kind
directly from orders or orders by clients * / private String

broom; / / are the products sold
private string mop,


cost public void () {/ / responsible for conducting statistical sales

private int / / number of unit sales
private int / / cost of manufacture private int
product price / / int final price
private utilities / / total gain in the order
private int lost; / / Total loss on the order




}}



That's what you believe in concordance with the suggestions given to me by Dr. Elisa, if you have any questions, clarification, questions, comments or suggestions comment: 3

Greetings!

0 comments:

Post a Comment