Single Choice Easy

QYou need to instantiate a class. Which will best complete this statement?

dbfmVehicleEntry vehicleEntry = __________ dbfmVehicleEntry();

ID: #9377 Classes in D365 F&O X++ 225 views
Question Info
#9377Q ID
EasyDifficulty
Classes in D365 F&O X++Topic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A instantiate
  • B new
  • C public
  • D return
Correct Answer

Explanation

Justification:

  1. Instantiate is not a valid keyword.
  2. The new keyword is used to instantiate a class.
  3. The public keyword is used to determine the scope and accessibility of a method, and is not used in instantiation of classes.
  4. Return is not a valid keyword to instantiate a new class.

 

Related Lesson: Create a Base Class

Share This Question

Challenge a friend or share with your study group.