• saisharan sara
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

code :
public class BankAcct {
private integer balance=0; public string acctName;
//Declare a public string attribute named accttype public string accttype;
//Declare a method, named makeDeposit, that accepts an integer named deposit //Within the method, add the deposit amount to the balance
public void makeDeposit (integer deposit) {
balance = balance + deposit; }
//Declare a method, named getBalance, that returns an integer public integer getBalance() {
//Return the balance attribute return balance; } }






error:
Step not yet complete in My Trailhead Playground 1
We can't find an Apex class named 'BankAcct' that contains the code provided in this step.