• CHETNA YENNAWAR
  • NEWBIE
  • 0 Points
  • Member since 2020

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

Hello,

 

I wrote a simple class to return a value but got the error message "Invalid constructor name". I'm not sure what caused the error. Below is my simple class. Please help. Thanks

 

public getCaseClient(Case aCase)

{

Account accName = [select id, parentId, name, Type fromAccountwhereId =: aCase.AccountId];

 

return accName.Type;

 

}

 

 

 

}

 

Paul

 

  • October 11, 2013
  • Like
  • 0