class Button {
public:
Button(int pin, int debounce)
{
}
};
class TransferTable {
private:
Button a(1, 1);
public:
TransferTable()
{
}
};
The above code gives me an error of "expected identifier before numeric constant" in reference to the "Button a(1,1)" line. The type is Button. I just want to construct a button object within this TransferTable class.
public:instead ofpublic;so I will fix this typo.