All pastes #473773 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-06 12:37 UTC
rendered paste body
public class Window
{
    private int size=5;
    public Window ()
    {
    }
    
    public Window (int x)
    {
        size = x;
    }
    
    public int getSize()
    {
        int size = 10;
        return size;
    }
    
    public static void main(String args[])
    {
        Window w1 = new Window();
        Window w2 = new Window(4);
        System.out.println ("The size of window w1 is: " + w1.getSize());
        System.out.println ("The size of window w2 is: " + w2.getSize());
    }
}