package com.abelski.samples; public class Rectangle implements Printable { private double height; private double width; public Rectangle(double wVal, double hVal) { width = wVal; height = hVal; } public void printDetails() { System.out.println("\nRectangle Object"); System.out.println("width="+width); System.out.println("height="+height); } }