Question discussion

What does the below code snippet represent? myObject.doActivity();

359234Medium DSSSB TGT Computer Science 0 replies 0 views
0
What does the below code snippet represent? myObject.doActivity();
  • ACalling a method named doActivity on the object myObject
  • BSending a message to the doActivity class
  • CCreating an object myObject
  • DSending a message to the child class of myObject
Correct answer: A

Explanation

myObject.doActivity() calls the method doActivity on the object myObject.

Discussion 0

Nobody has replied yet. Start the discussion!