Question: Q5. Consider the following programme and answer True or False (one-word answers only) for the following questions. i. On line (a) this keyword refers to

Q5. Consider the following programme and answer True or False (one-word answers only) for the following questions. i. On line (a) this keyword refers to the current object myObj with the reference of which the constructor Main() was called. ii. On line (a) we are assigning the value of local variable x to the global variable x. iii. Line (b) will result in displaying global variable x which now has a value of 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
