Game of Life (Abstract Class Version) ((((( if i am satisfied with the work i wi
ID: 638825 • Letter: G
Question
Game of Life (Abstract Class Version) ((((( if i am satisfied with the work i will provide another link for another 1500 points .....total of 3000 points))))))
In this assignment, you will define two member functions of class Square: bool getLiveInfo() and void update() as pure virtual functions by the "=0" syntax. As a result, class Square will become an abstract class. As we studied in class, no concrete objects can be created through an abstract class. That means that class Square will only serve as a parent class of class Cell. Class Square, however, can be used as a pointer or reference data type of child class objects as "Square * _squares[ROWS][COLS]" in class Grid. In addition, those two pure virtual member functions must be overridden by child class.
In the Game of Life programming assignment, multiple classes are used. Some classes use others as types of their members. Normally, referenced classes in a class should be declared before the referencing class. Sometimes, this cannot be done because multiple classes are referenced each other in an interleaved manner. A good solution would be pre-declarations of classes as used in this assignment.
You are required to use the class declarations (abstract version) given below to re-implement the Game of Life simulation. Once your program works correctly, you should be able to reproduce the simulation results provided below. A client program (main() function) is the same as the last version.
The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed
Explanation / Answer
check
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.