O'Reilly Forums: #lab 2 - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

#lab 2 #Lab 2, weapenControl = null??

#1 User is offline   savantKing99 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 04-February 11

Posted 10 February 2012 - 04:15 AM

 
Control weaponControl = null;// new Control();
 //Control weaponControl = new Control();


How can that be?? you just set an object(weaponControl to null )??

How can u use the control then?

Or is this a manner that the writers want to test our skills?

If I do Control weaponControl = new Control();

it is working and I can use it. I just dont understand why it is set to null??
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users