访问说明符属于哪个oops概念? [英] Access specifiers comes under which oops concept?

查看:87
本文介绍了访问说明符属于哪个oops概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对它们是否受到抽象或封装感到困惑。在一些文章中,他们提到它来自封装,但在其他一些抽象中。

I got confused whether they comes under abstraction or encapsulation.In some articles they mentioned it comes under encapsulation but in some other under abstraction.

推荐答案

这是一个什么都没问题。关于什么是概念的问题与计算机科学无关。这是伪科学 ,或者更确切地说,就像我称之为blah-blahology。没有这样的东西。语法和语义的关键词和元素不是来,只是存在并且在技术中使用;它们不应与特定概念直接相关。这种方法是反科学的,或者更确切地说,它表明科学语言的模拟。这是一个非常粗糙的模拟。



请参阅:

http://en.wikipedia.org/wiki/Pseudoscience [ ^ ],

http://en.wikipedia.org/wiki / Imitation_of_sounds_in_shamanism [ ^ ]。



这些问题根本无法回答,不应教导通过使用正确的词语来模仿理解。以这种方式教学的学生应该使用批判性思维而不是让他们洗脑。关于这个主题,请参阅我4月1日的文章:一些编程方法到神经语言程序设计 [ ^ ]。



-SA
This is a question about nothing. The "question" about "what comes under what concept" have nothing to do with computer science. This is pure pseudoscience, or rather, as I called it blah-blahology. There is no such things. Keywords and elements of syntax and semantic don't "come", there are just there and are used in technology; they should not be directly associated with particular concepts. Such approach is anti-scientific, or, more exactly, it indicates simulation of the language of science. And this is a very crude simulation.

Please see:
http://en.wikipedia.org/wiki/Pseudoscience[^],
http://en.wikipedia.org/wiki/Imitation_of_sounds_in_shamanism[^].

Such "questions" should simply not be answered, and imitation of understanding with through using "right words" should not be taught. And students taught this way should use critical thinking and not allow brain-washing them. On this topic, please see my last 1st of April article: Some Programming Approaches to "Neuro-Linguistic Programming"[^].

—SA


当然,访问说明符是 encapusation 机制。抽象是一个更通用的概念,由 OOP 作为一个整体支持。
Access specifiers come, of course, as encapusation mechanism. Abstraction is a more general concept, supported by the OOP as a whole.


它包含在Encapsulation和Abstraction两个概念中/>


封装是将成员或变量隐藏到外部类,因此我们使用访问说明符隐藏。

例如:私人



抽象是为了向用户显示和分享一些常见信息。所以我们使用acess说明符来显示



例如:公共
It comes under the both concepts Encapsulation and Abstraction

Encapsulation is to hide the member or variable to outside class, so we use access specifiers to hide.
for eg: private

Abstraction is to show and share some common information to the user. so we use acess specifiers to show

for eg: Public


这篇关于访问说明符属于哪个oops概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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