Apex Advanced OOPs: Constructors & this Keyword 🚗💻 | Salesforce Development Course In Hindi
Chai, Gyaan Aur Padhai
0:00 / 0:00
Apex Advanced OOPs: Constructors & this Keyword 🚗💻 | Salesforce Development Course In Hindi
2 просмотра · 11 часов назад
Chai, Gyaan Aur Padhai
11 подписчиков
2 просмотра · 11 часов назад
Welcome back to our complete Salesforce Development course on Chai, Gyaan aur Padhai, where learning is as easy as sipping a cup of tea! ☕
In our previous video, we learned how to build reusable classes and methods. But when you instantiate a new object from a class, wouldn't it be great if certain default properties—like automatically setting a property status to "Available"—happen instantly without needing separate method calls?
That is where Constructors and Keywords (this, static) come into play! In this video, we dive hands-on into default and parameterized constructors and learn how the this keyword helps manage instance variables smoothly.
If you are from a non-IT background and terms like object instantiation and class constructors sound intimidating—relax! We explain everything using simple everyday analogies like a car factory's default pre-settings right off the assembly line 🏭🚙.
📌 What You Will Learn in This Video:
What is a Constructor? Understanding special methods that automatically run the moment an object is created
The Car Factory Settings Analogy: How constructors instantly configure default states (like setting status to "Available") upon instantiation
Parameterized Constructors: Passing custom values when creating an object
The this Keyword: Pointing directly to current instance variables when parameter names match class attributes
Step-by-Step Hands-on Tutorial: Writing a PropertyRecord class with a parameterized constructor, using this, and instantiating objects live inside the Developer Console
Checking Debug Logs: Inspecting system outputs using System.debug() to verify default values and parameters instantly
🎯 Today's Homework:
Open up your Developer Console inside your Salesforce Developer Edition org.
Create a brand new Tenant class where the constructor initializes a tenant's name and phone number.
Instantiate the object and print the details.
Drop your success confirmation in the comments below by typing: 'Constructors Mastered!'
💡 Next Video Teaser: OOPs advanced concepts are now locked in! But up until now, we haven't touched real database fields (Property__c) directly inside our code. In the next video, we will explore Working with sObjects in Apex!
If you enjoyed this session, hit the LIKE button, share it with your friends, and SUBSCRIBE to the channel to build your tech career step-by-step. Keep learning, keep growing! 👇
#SalesforceDevelopment #ApexConstructors #ObjectOrientedProgramming #SalesforceAdmin #SalesforceForBeginners #SalesforceInHindi #SalesforcePractical #CloudComputing #NonITtoIT #CareerInIT #SalesforceCourse #ChaiGyaanAurPadhai #SalesforceTutorial #TechInHindi
#ChaiGyaanAurPadhai #Java #JavaTutorial #CoreJava #JavaProgramming #Salesforce #SalesforceTutorial #SalesforceDeveloper #SalesforceAdmin #SalesforceCloud #Apex #LWC #LightningWebComponents #Programming #ProgrammingTutorial #TechTutorials #LearnProgramming #SoftwareDevelopment #TechInHindi #ProgrammingInHindi