Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

im a new student to c++ and classes has really confused me. the program is creat

ID: 3633026 • Letter: I

Question

im a new student to c++ and classes has really confused me. the program is creating a bank account. i have already completed the header file but the implementation file has be confused. can someone please help me with this. thanks!
here is my header file:

#include <iostream>
using namespace std;
class BankAccount
{
private:
string id;
double balance;
string password;
public:
BankAccount();
BankAccount(string,double,string);
string getID();
double getBalance();
void setID(string);
void setPassword(string);
bool deposit(double);
bool withdrawal(double);
void addInterest();
bool equals(BankAccount);
string getPassword();
};

Explanation / Answer

You're missing a ; at the end of that. See each one of those function? This list: BankAccount(); BankAccount(string,double,string); string getID(); double getBalance(); void setID(string); void setPassword(string); bool deposit(double); bool withdrawal(double); void addInterest(); bool equals(BankAccount); string getPassword(); You need to make each one of those. I'll get you started, and then you make the rest. C++ Syntax BankAccount::BankAccount() { id = ""; balance = 0; password = ""; };