什么是调用方法和被调用方法? [英] What is calling method and called method?
本文介绍了什么是调用方法和被调用方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
调用方法和被调用方法都一样吗?
Are calling method and called method both same?
我想知道的是调用方法"是指在大多数情况下调用另一个是主方法的方法,还是主方法本身?
What I would like to know is "calling method" means the method which calls another method that is main method in most cases, or the main method itself?
推荐答案
调用方法是包含实际调用的方法.被调用的方法是被调用的方法.他们是不同的.例如:
The calling method is the method that contains the actual call; the called method is the method being called. They are different. For example:
// Calling method
void f()
{
g();
}
// Called method
void g()
{
}
这篇关于什么是调用方法和被调用方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文