Skip to main content
deleted 10 characters in body
Source Link
mdfst13
  • 22.4k
  • 6
  • 34
  • 70

Don't make destructors if you don't need to. The default destructors are sufficientbehavior is plenty for your use case.

Why is the destructor of GameOfLife virtual? You don't have anya class that would need to inherit from it.

Don't make destructors if you don't need to. The default destructors are sufficient for your use case.

Why is the destructor of GameOfLife virtual? You don't have any class that would need to inherit from it.

Don't make destructors if you don't need to. The default behavior is plenty for your use case.

Why is the destructor of GameOfLife virtual? You don't have a class that would need to inherit from it.

Fixed typos but I had to edit more to get around 6 character edit limit...
Source Link

Don't make destructors if you don't need to. DeThe default behavior is plentydestructors are sufficient for your use case.

Why is the destructor of GameOfLife virtual? You don't have andany class that would need to inherit from it.

Don't make destructors if you don't need to. De default behavior is plenty for your use case.

Why is the destructor of GameOfLife virtual? You don't have and class that would need to inherit from it.

Don't make destructors if you don't need to. The default destructors are sufficient for your use case.

Why is the destructor of GameOfLife virtual? You don't have any class that would need to inherit from it.

Source Link
ratchet freak
  • 13k
  • 22
  • 46

Don't make destructors if you don't need to. De default behavior is plenty for your use case.

Why is the destructor of GameOfLife virtual? You don't have and class that would need to inherit from it.