编程中的类和封装之间有什么区别

编程中的类和封装之间有什么区别

问题描述:

类和封装之间是否有任何区别

thanq

is there any difference between the class and encapsulation

thanq

在面向对象编程(OOP)类中用于封装.

忘了所有.请从
In Object Oriented Programming (OOP) class serve purpose of Encapsulation.

Forget about all. Please start your OOP journey from here[^]

Happy Programming


区别与泰坦尼克号"和导航"之间完全相同,请参见
http://en.wikipedia.org/wiki/Titanic [ http://en.wikipedia.org/wiki/Navigation [
请参阅:如何提出一个好问题? [ ^ ] .请查看此页面上的其他建议,您确实需要它.

也请参阅我对雨果发表的评论.

—SA
The difference is exactly the same as between "Titanic" and "navigation", see
http://en.wikipedia.org/wiki/Titanic[^],
http://en.wikipedia.org/wiki/Navigation[^].

If you still did not get it, try to answer this question: what''s the difference between apple and Apple?

The questions like "What''s the difference between {0} and {1}" are incorrect. Did you get it finally?

Please see: How to ask a good question?[^]. Please see other advice on this page, you really need it.

Please also see my comment to the post by Hugo.

—SA


这两个方式有所不同.

Class ,可以定义为Object的实例.

封装,可以很容易地定义为数据隐藏".

瞧,它们之间有很大不同:)
Google ?

干杯!
These two are of way different.

Class, could be defined as an instance of an Object.

Encapsulation, could be easily defined as "data hiding".

See, it is way far different from each other :)
Google?

Cheers!