English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1. What is a method?
* .how is a class method different from an object method?

2006-11-10 03:19:55 · 2 answers · asked by apologetic123 1 in Computers & Internet Programming & Design

2 answers

method is like a function if you familiar with c or c++.
Method is called like a function the same way you did in c or c++
Method in class is a method which associates with its data and other members like functions, objects, etc.

While object method is a method which is invoked or called by the object as a referrence. It can also calls a method from another class, depending on your hierarchy, where the other class must either be on top(base class) or same level or at the bottom as long as it has the linkage. To do this, u must use a polymorphism technique (which mostly learn at the institute).

Please refer to the reference book for this --I'm out of my memory for this!! I've been graduated for a long time ago:)
But if you have a technical problem to be solved, you can ask me.
This is my email:-> k_mz79@yahoo.com

2006-11-10 03:32:25 · answer #1 · answered by m_Fariz 3 · 0 0

you need help with coffee......

2006-11-10 11:21:07 · answer #2 · answered by rottentothecore 5 · 0 0

fedest.com, questions and answers