"An attempt to call a field (rather than a method)" What is the difference between these two???
simple english please I'm confused enough as it is!
ConfusedMuchMor
0
Newbie Poster
Recommended Answers
Jump to PostA field is a variable that resides inside an object.
fooObject.thisisafield;
A method is a function that resides inside an object.
fooObject.thisisamethod();
Notice that methods have the parenthesis at the end. These are used to enclose paramenters.
fooObject.multiply(num1, num2);
They are …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.