Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

What is an instance methods?

+2 votes
asked Oct 10 in CSC 211 (F17) by Thomas Ayele (2,875 points)

2 Answers

+2 votes
A method inside an object that operates on that object.
You can read more on page 524.

also we tend to use the words “instance” and “object” interchangeably don't know if this helps tho
answered Oct 10 by Jason Dedjoe (2,419 points)
0 votes
Just to add my two cent.

An instance method can only be called on an instance of the class (object) so you can only use such method when you have that object. Static method on the other hand can be called without a declared object.
answered Oct 11 by Dat Tran (2,584 points)
...