How to fix SIMCard unknown override specifier?

SIMCard.h
#include "stdafx.h"


class SIMCard
{
private:

 int m_insert; // the presence of the SIM card (1 - true, 0 - no)

public:
 SIMCard(int insert)
{

 this->m_insert = insert;

}

 virtual void Validate(vector<string>& errors) // check for empty fields
{
 if ('0' != this->m_insert && '1' != this->m_insert)
 errors.push_back("Enter 1 - the presence of SIM, 0 - lack");
}

 const int insert() const
{
 return this->m_insert;
};


 void operator~()
{
 if (m_insert == 1)
 m_insert = 0;
};

SIMCard();
~SIMCard();
};
Mobilephone.h
#include "stdafx.h"
// to include the SimCard

class MobilePhone // Phone - a descendant of SIM-cards
{
private:
 char m_vedor; //manufacturer
 char m_model; //model
 int m_price;
 SIMCard SIMCard;
public:

 MobilePhone(char vedor, char model, int price)
{
 this->m_model = model; // ukazateli, by private email. to use them in other classes
 this->m_vedor = vedor;
 this->m_price = price;
SIMCard.insert();

}

 virtual void Validate(vector<string>& errors) // check for empty fields
{
 if (NULL == this->m_model)
 errors.push_back("No model specified");
 if (NULL == this->m_vedor)
 errors.push_back("unknown manufacturer");
 if (NULL == this->m_price)
 errors.push_back("Enter price of phone");
}

 const char * Model() const // to be called in school etc.
{
 return this->m_model;
};
 const char Vedor() const
{
 return this->m_vedor;
};
 const int Price() const
{
 return this->m_price;
};

MobilePhone();
~MobilePhone();
};



Error C3646 SIMCard: unknown override specifier ConsoleApplication1 C:\Users\Zver\Desktop\ConsoleApplication1\ConsoleApplication1\MobilePhone.h 10

Error C4430 missing type specifier - int assumed. Note. C++ does not support int by default ConsoleApplication1 C:\Users\Zver\Desktop\ConsoleApplication1\ConsoleApplication1\MobilePhone.h 10

SIMCard error C2065: undeclared identifier ConsoleApplication1 C:\Users\Zver\Desktop\ConsoleApplication1\ConsoleApplication1\MobilePhone.h 18
March 23rd 20 at 19:45
0 answer

Find more questions by tags C++