함수와 메소드의 차이

Posted by epicdev Archive : 2013. 4. 18. 00:02

여태껏 함수와 메소드, 변수와 필드등의 용어들을 혼재해서 막 써왔었는데 이번 기회에 확실하게 기억해 놓아야 겠습니다.

아래의 표를 보시면 각 객체지향언어에서 멤버 변수와 멤버 함수들을 어떻게 지칭하는지 알 수 있습니다.


출처: http://blog.naver.com/cdincdin?Redirect=Log&logNo=30129625682



  
출력 결과
  
출처: http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string

Java reflection API를 사용하면된다. 

Coding from the hip, it would be something like:

The parameters identify the very specific method you need (if there are several overloaded available, if the method has no arguments, only give methodName).

Then you invoke that method by calling

Again, leave out the arguments in .invoke, if you don't have any. But yeah. Read about Java Reflection 
  
 «이전 1  다음»