编程中的类和封装之间有什么区别 [英] what is the difference between the class and encapsulation in programming

查看:105
本文介绍了编程中的类和封装之间有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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!


这篇关于编程中的类和封装之间有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆