开发者

What is the relationship between class and type? [duplicate]

开发者 https://www.devze.com 2023-03-05 00:35 出处:网络
This question already has answers here: 开发者_开发问答 Closed 11 years ago. Possible Duplicate: What is the difference between Type and Class?
This question already has answers here: 开发者_开发问答 Closed 11 years ago.

Possible Duplicate:

What is the difference between Type and Class?

What is the relationship between class and type? Or what are the relationships between class and type?

If you think defining the concepts class and type clarifies the answer, please include definitions.


Resuming:

The basic relationship between those two concepts is that a class defines a type.

If you define the class Car, you're also defining a new type: Car.

0

精彩评论

暂无评论...
验证码 换一张
取 消