While following Ivan’s video, I tried running the same code that he did. My cpp file looks like this:
#include<iostream>
#include "car.h"
using namespace std;
void Car::blowHorn()
{
cout<<"BLOWING HORN!!!";
}
Car::Car()
{
}
Car:: ~ Car()
{
}
the line “Car::~Car()” has an error message that says “definition of implicitly declared destructor”
In the video, I van said that we haven’t covered that yet, and we shouldn’t worry about it. Well, My machine won’t run the program because of it. Any advice? I am using xcode 12. I just updated last night.