

MCQOPTIONS
Saved Bookmarks
1. |
What is the difference between a function and a method? |
A. | Function is a named code unlike method which is a part of an object |
B. | Function cannot change variables outside its scope unlike method |
C. | There is no difference between the two |
D. | Function contained in an object is called a method |
Answer» B. Function cannot change variables outside its scope unlike method | |