c中的静态和动态绑定 [英] Static and dynamic binding in c
本文介绍了c中的静态和动态绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
c中是否可以进行静态和动态绑定?我们如何通过c程序显示这个?
我尝试过:
我知道面向对象程序中的静态和动态绑定概念。但我不知道在c
解决方案
花在Google上的一点时间会产生此链接 - 什么是静态和动态在C中绑定(严格C,而不是C ++)? - 堆栈溢出 [ ^ ]
简而言之,是的,这是可能的,但你真的不应该这样做。如果你想使用面向对象的概念,那么使用适当的语言。
见这里: C中的静态和动态绑定是什么(严格来说是C,而不是C ++)? - 堆栈溢出 [ ^ ]
他解释得比我更好......
是的,它是可能(几乎所有东西都可以用C
)但是它通常不方便,C ++
更适合这样的工作
Is static and dynamic binding possible in c? How can we show this by c program?
What I have tried:
I know the static and dynmic binding concepts in object oriented program.But i dont know in c
解决方案
A little bit of time spent on Google would have yielded this link - What are static and dynamic binding in C (strictly C,not C++)? - Stack Overflow[^]
In short, yes it is possible, but you really shouldn't be doing it. If you want to use object-oriented concepts then use the appropriate language.
See here: What are static and dynamic binding in C (strictly C,not C++)? - Stack Overflow[^]
He explains it better than I could...
Yes, it is possible (almost everything is possible withC
) however it is usually not covenient,C++
is better suited for such a job.
这篇关于c中的静态和动态绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文