19 November 2013

Function vs Methods

Function vs Methods
1independent existence they can be defined outside of the classthey are always defined with in class
2languages Structure languages object oriented languages
3independentlycalled independently.called using instance or object.
4Functions are self describing unit of code.Methods are used to manipuate instance variable of a class

No comments: