I am making a coffee menu program that uses classes and derived classes to classify mocha drinks. For some reason despite me initializing all variables and there being no error messages every time I create an object from any of the classses Visual Studio wont run my code saying that the system cannot find the specified file. Here is an example of one of my derived classes:
class DarkChocolateMocha : public Mocha{
private:
int milkAmmount;
int espressoShot;
string chocolateType = "Dark Chocolate";
public:
DarkChocolateMocha();
DarkChocolateMocha(int milk, int shot) {
this->milkAmmount = milk;
this->espressoShot = shot;
}
void prepare() {
cout << "White Cholcolate Mocha. Ingrediants:\n-" << milkAmmount << "\n-" << espressoShot <<
"\n-" << chocolateType;
}
};