Site uses cookies to provide basic functionality.

OK
Another good reason to create a class is to model an abstract object--an object that isn't a concrete, real-world object but that provides an abstraction of other concrete objects. A good example is the classic Shape object. Circle and Square really exist, but Shape is an abstraction of other specific shapes.