Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道在 C++ 中,每个实例中都有一个指向虚拟表的虚拟指针。但是动态绑定是如何在 Java 中实现的呢?
我想我会回答我自己的问题。基本上,对象存储对其类对象的引用,动态绑定将从对象转发到其中。
只是为了挑剔,它是指向真实虚函数表的真实指针,因此称为“虚函数表”,通常缩写为“vft”。它通常也缩写为“vtbl”,这无济于事。
Java 可能会做一些类似的事情。
我正在尝试使用 android 将图像上传到 C# Web 服务
Web 服务采用以下参数:
byte[] data, string strFileName
但每次我运行应用程序!它给了我这个错误: