This is a framework you can use to implement magic squares in an OOPs environment:
Cell Attributes:
Cell Methods:
Square Attributes:
Square Methods: