package dmi_demo; public class Transaction { private int seller, buyer, part; private float price; public Transaction (int s, int b, int prt, float p) { seller = s; buyer = b; part = prt; price = p; } public int getSeller() { return seller; } public int getBuyer() { return buyer; } public int getPart() { return part; } public float getPrice() { return price; } public void dump() { System.out.println("Company "+seller+" sells item "+part+" to "+buyer+" for $"+price); } }