What is difference function and method?

A function is directly called by its name, whereas a method includes a code that is called by the object’s name . A function can pass and then return the data that is operated, whereas a method operates data in a Class. A function is independent, whereas a method is a function linked with an object.

Sizin İçin Seçtik  How good is Latvia internet?

Leave a Reply

Your email address will not be published. Required fields are marked *