What does the below code snippet represent? myObject.doActivity();
What does the below code snippet represent?
myObject.doActivity();
Show answerHide answer
Correct answer: (A) Calling a method named doActivity on the object myObject
Explanation
The dot operator calls the method doActivity() on the object myObject (in OOP terms, sends the message doActivity to that object).