Splitting Classes - Example
public class Shape {
protected double x_ = 0.0;
protected double y_ = 0.0;
protected double width_ = 0.0;
protected double height_ = 0.0;
public synchronized double x() {
return x_;
}
public synchronized double width() {
return width_;
}
// ...
}
Previous slide
Next slide
Back to first slide
View graphic version