Let's see with an example
Apex Class:-
In this above class, you can see line 13 is a copy constructor because I passed class as a parameter in it
Calling class with a method:-
Memory Location:-
Output:-
Contact Me -
Salesforce Hunt Social Media Handle
🔔 Subscribe to my YouTube channel
https://www.youtube.com/c/SalesforceHunt
📌Website
📌Blog
https://salesforcehunt.blogspot.com
https://www.facebook.com/salesforcehunt
linkedin.com/in/salesforce-hunt-b6aab3227
https://twitter.com/salesforce_hunt
https://www.instagram.com/salesforcehunt
https://in.pinterest.com/salesforcehunt
📌Quora
https://www.quora.com/profile/Salesforce-Hunt
📌Telegram
https://t.me/joinchat/fccG1UqNg1dhMTQ1
0 Comments