Lines Matching refs:Square
39 class Square : public Shape {
42 Square(double S) : SideLength(S) {}
133 class Square : public Shape {
136 - Square(double S) : SideLength(S) {}
137 + Square(double S) : Shape(SK_Square), SideLength(S) {}
174 class Square : public Shape {
177 Square(double S) : Shape(SK_Square), SideLength(S) {}
258 from ``Square``, and so ``ShapeKind`` becomes:
269 Then in ``Square``, we would need to modify the ``classof`` like so:
283 ``Square``, and so ``classof`` needs to return ``true`` for them.
293 | Square
306 a subclass of ``Square``, and update the ``ShapeKind`` enum like so:
318 Now, suppose that we forget to update ``Square::classof()``, so it still
325 // even though SomewhatSpecialSquare "is a" Square.
346 // Square::classof()
368 Notice that ``Square::classof`` does not need to be changed.