实例和对象之间有什么区别? [英] What is the difference between an Instance and an Object?
本文介绍了实例和对象之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
实例和对象之间有什么区别? 有区别吗?
What is the difference between an Instance and an Object? Is there a difference or not?
推荐答案
实例是内存中的对象.基本上,您创建对象并在使用它们时实例化它们.
An instance is an object in memory. Basically you create object and instantiate them when you are using them.
这是关于类vs对象vs实例的不错的文章,他在讲Java,但它适用于所有OO.
Here is a nice writeup on Classes Vs Objects Vs Instances, he is talking Java but it applies to all OO.
http://alfredjava.wordpress.com /2008/07/08/class-vs-object-vs-instance/
这篇关于实例和对象之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文