function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sarvesh PrajapatiSarvesh Prajapati 

lukesXWing.shield = new DeflectorShield()

what is the meaning of 'lukesXWing.shield              = new DeflectorShield()'
pconpcon
That is creating a new class of type DeflectorShield and assigning it to the shield variable on the lukesXWing variable.