you guys are doing an amazing job basically for FREE. Not sure if I could find such concepts even in paid platforms as well, so much thanks for this! so straightforward and amazing explanation!
So great that you covered a whole lot of concepts in one single hour with an awesome explanation. Exactly what I was looking for. Please keep teaching us !! :)
Hi Jigar, the video got real messed up from 41:05 point on where you tried explaining the 'this' Keyword. Got very disappointed by the way you rushed it and said try to get a hold of this instead of going slow and explain the constructor chaining you did there.
This keyword we use to assign values to current instance of an class. Basically here he used while class declaration. If we use object then new instance will create for class and values of variables will change as per object instance value passed.
I was searching for videos for apex in SF and came across this ...worth watching all concepts is clearly explained ..Iam happy I found this .I already have core Java background so I clearly understood all in one listen.
50:31 Just like C and Java, Apex is also always pass by value. User defined datatypes are NOT passed by reference, rather the reference is passed (i.e., the memory address) by value.
by the way @43:24 it didnt work because printout is static method, and helloWorldString is non-statc variable, and you cant access non-statc variable in static functions, but non-static fun can access static variables
Hey, thank you for posting such great content. Just a humble suggestion, it would be beneficial if real life use cases are posted for every method so that we are clear about why is it relevant to learn what ever is being taught.
First of all, I appreciate the free content you have provided us, so thanks for that. However, there should be some disclaimers stating that a good grip on Java is a must to comprehend almost everything in this lecture. If an absolute beginner (just an admin) comes across the content directly, there is no way they shall be able to understand this. Also I found below anomalies: 1. There is only 'Pass by value'. Not by reference. In primitives, content value is passed. In case of objects, the address of memory where that object resides(which is the reference/variable) is passed as value. That's why a new/copy object is not created in method call. It references the same object so the object members are modified if changed inside method. 2. Below is never explained for beginners: An object instantiation can have below format: Super class reference/variable = new Super Class Object. OR Super class reference/variable = new Child Class Object. But you cannot have a child class reference and super class Object. 3. Continuing previous point, for this Object creation: Super class reference/variable = new Child Class Object Its possible to call only methods defined in Super class, not the new ones(other than inherited ones) defined in Child class. 4. Interfaces are like parent classes, but contain only ABSTRACT methods( methods without a body to be overriden). Hence below is possible for interfaces too: Super class reference/variable = new Child Class Object. That said, a strong base in Java is must as per this session.
It good to have but not needed in day to day development work, You will find hardly find ABSTRACT classes in Salesforce Development. We are teaching Apex here and expecting you have OOPS knowledge
public class MathCalculator { Public Integer add(Integer a, Integer b) { return a+b; } Public Integer multiply(Integer a, Integer b) { return a*b; } Public void printOutput(Integer a, Integer b) { System.debug('Summation of 2 values: ' + add(a,b)); System.debug('Multiplication of 2 values: ' + multiply(a,b)); } public void doMath(Integer a, Integer b) { printOutput(a, b); } }
sir here one thing you have missed in pass by reference that you should have mentioned this thing that Account is a standard object provided in salesforce that we are implementing in apex where we are instantiating by considering it as a class while writing code in apex and after that we are accessing the various standard fields of that account object and modifying it.....As I am already on developer side I understood this thing but it would be very difficult for complete beginners to catch this point so please sir from next time keep these things in mind...thank you.
likewise you are missing on lot of points in this video and the previous one and hence it would be a lot lot more difficult for beginners to catch the important concepts....
We covered most of the point in different sessions. It a 12 session series. Please complete all of them and let me know the missing topic I would love to create new recording on same or I can teach you personally too. I would say check agenda of each session here first www.apexhours.com/apex-hours-for-students-developer-program/
ByVal vs ByRef: am I the only one who is put off by the fact that the two variables demonstrating ByVal are not the same? it is webSiteURL vs webSiteURLValue, right? When you call the ByVal function by webSiteURL, the function itself returns webSiteURLValue, isn't that a problem?
Your lecture is very helpful for beginners but there is one thing I am confused about. You said "Class is a static entity" however, salesforce documentation says that "Apex classes can’t be static." Which is correct?
Thank you for helping salesforce Dev, I would like to know about call-by-value and call-by-reference examples that you used in the video. The "String" is internally an object type and its memory allocation is in Heap. So, both in Call-byValue method or in Call by Ref method, its (string variable) value should get updated. Even though its data type is called primitive data-type but still memory is referenced as address.
Hi there, I love the content and learning so much. I have a question if anyone could help me out. For the Static and Instance Method section, when no value is passed in from Anon window, how has 'helloWorldString' been assigned the DEFAULT_STRING value? From what I can see it hasn't been explicitly assigned anywhere put on he debug log it still outputs 'Hello World'. Any help would be greatly appreciated.
Hello Team, Thank you for this amazing series of videos. I am currently working on the assignment of this video and I had a doubt. The printOutput() function that is to be written, I was wondering if there would be two different printOutput() functions for add or multiply or there would be only one with a generic return statement? Thanks..!!
What are the contents cover for salesforce certificate exam, I preparing for exam, watching ur video good explanation say what are the topic be strong in salesforce kindly request plz reply
Line: 2, Column: 4 Method does not exist or incorrect signature: void mainValueMethod() from the type Demo3 This error can be fixed by saving your class
Teaching is excellent and its a wonderful opportunity given by the team. But as I dont have any previous coding experience it is very much difficult to understand. Any tips on this please. Do i need to learn any other programming language first :(
I have completed my Assignment for day 1 and 2. I wanted to confirm if the code that i have written is correct or not. Where can i find the solution fro the assignment?
Hello Team, Kindly let me know how can I make this better: public class Mathcalculator { private integer a = 12; private integer b = 10; private integer answer ; public void Addition(){ answer = a + b ; system.debug('a+b=' +answer ); } public void Subtraction(){ answer = a - b ; system.debug('a - b=' +answer ); } public void multiplication(){ answer = a * b ; system.debug('a * b=' + answer ); } public void division(){ answer = a / b ; system.debug('a / b=' + answer ); } } ////////////////////// Mathcalculator Add = new Mathcalculator(); Add.Addition(); Add.Substraction(); Add.Multiplication(); Add.Division();
*ASSIGNMENT* CLASS public class MathCal { integer sum = 0, mul=1; public void add(integer a, integer b){ sum=a+b; PrintOutput(sum); } public void mul(integer a, integer b){ mul=a*b; PrintOutput(mul); } public void PrintOutput(Integer show){ System.debug(show); } } ANONYMOUS WINDOW list num = new list(); for(integer i=0; i