SE450: Abstract Classes [28/65] Previous pageContentsNext page

public class SelectableShape implements Item 
{
public void setSelected(boolean b) { selected = b; }
public boolean isSelected() { return selected; }
private boolean selected;
}

Previous pageContentsNext page