Create a class called planet with private members name,percent02, temp. Create a constructor prototype and implementation.In the main, create 2 objects of class planet, one with argumentsand the other without. Create a function to change name, percent02and temp after the object has been created and a function thatdisplays the current values of the members. Implement theoperations specified above in the main of your program. This is allin C++, please help.
Answer
Please find the code below:::::
#include <iostream>
#include <string>
using namespace std;
class Planet{
private:
string name;
float percentO2;
int temp;
public:
Planet(){
name=””;
percentO2 = 0;
temp = 0;
}
Planet(string
OR
OR