Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How can I call a constructor for creating an instance of a particular class?

Asked by Deepali Singh Feb 7, 2024 793 views 1 answer
Share

About this question

There is a scenario where I have a class whose name is “car”. This particular class has parameterized constructor. How can I call this particular constructor to create an instance of the class “car” and even initialize its properties? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.