Question: //This is in C++ //Find three syntax errors in this code class YourAccount //Line 1 Class name { //Line 2 public: //Line 3 Account(); //Line
//This is in C++
//Find three syntax errors in this code
class YourAccount //Line 1 Class name { //Line 2 public: //Line 3 Account(); //Line 4 Default Constructor Account (float); //Line 5 Constructor float deposit(float); //Line 6 Function deposit float withdraw(float); //Line 7 Function withdraw void printBalance(); //Line 8 Function printBalance private: //Line 9 float balance; //Line 10 Member variable balance } //Line 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
