Challenge 1: Rearranging a Class
In this challenge, you'll be splitting up a class into .h and .cpp files.
Problem Statement
We have provided you the implementation for the Planet
class. Your task is to ensure abstraction by splitting up the code into header and .cpp files.
In the code below, Planet.h
and Planet.cpp
are empty, whereas main.cpp
contains the full implementation. The class ...