Difference between object and class

1. object is the instance of a class.  class defined the blueprint or template of a object, include its behavior and/or perproies.

2. object is a physical entity, class is logic/abstract entity

3. object could be created many times, class only be declared once

猜你喜欢

转载自blog.csdn.net/xylz_yang/article/details/81703525