/* * @topic T11315 Interface Demo * @brief class Product implements Printable interface */ package pckg; public class Product implements Printable { String code; String description; double price; // constructors public Product( String code, String description, double price ) { this.code = code; this.description = description; this.price = price; } // implement the Printable interface @Override public void print() { System.out.println( "Code: " + code); System.out.println( "Description: " + description); System.out.println( "Price: " + price ); } }//class Product