class Overloaded {

    public Overloaded () {
        System.out.println("You are creating a sample class.");
    }

    @SuppressWarnings
    public double sampleMethod() {
        System.out.println("This is a sample method without parameters returning a double.");

        //read the length from console
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("Please enter length of a rectangle");
        int length = Integer.parseInt(br.readLine());

        //read the width from console
        System.out.println("Please enter width of a rectangle");
        int width = Integer.parseInt(br.readLine());

        return 1.0;
    }
    
    public void sampleMethod(boolean bool) {
        System.out.println("This is a sample method with a boolean parameter.");
    }
    
}