Hi Matt, Thanks for creating such a great content 👍 There is one question. In the example in this recording you defined a method within a class with the same name as the class itself. From my understanding that method became a Constructor (as you explained in a few episodes behind in the video regarding Constructors). If it's true and this method is a Constructor, it means that it should run each time you instantiate a class. And it should run without calling it directly, right? So, in the example you provided I don't understand if it ran or not. Also I don't understand how it can run given that it should return String value 🧐 Would you please clarify?
Really grateful that I stumbled upon this channel. Was able to understand everything very clearly, Thank you Matt :)
Very helpful. thanks Matt.
Thank you Matt!
Great content as always.
I feel like the dog pillow is starting at me 😀
Hi Matt,
Thanks for creating such a great content 👍
There is one question.
In the example in this recording you defined a method within a class with the same name as the class itself. From my understanding that method became a Constructor (as you explained in a few episodes behind in the video regarding Constructors).
If it's true and this method is a Constructor, it means that it should run each time you instantiate a class. And it should run without calling it directly, right?
So, in the example you provided I don't understand if it ran or not. Also I don't understand how it can run given that it should return String value 🧐
Would you please clarify?
I think name is same for us but not for salesforce as apex is case sensitive and class name is starting with "C" and method name starting with "c"