当您说C#是面向组件的语言时,这意味着什么? [英] What does it mean when you say C# is component oriented language?

查看:102
本文介绍了当您说C#是面向组件的语言时,这意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我前一段时间学过Java。我只是对Java感到厌倦,过了一会儿又回到了C ++。我以为C#与Java类似。在阅读了一些有关C#的内容之后,我对C#与Java之间相似性的假设是不正确的。我在C#中发现了许多我喜欢在Java中看到的强大概念。无论如何,除了一件事之外,我读到的大部分内容对我来说都是有意义的。我不断听到C#是面向组件的语言! Wikipedia真的没有这个概念。

I learned Java while ago. I just got bored of Java and returned to C++ after a while. I thought that C# was similar to Java. My assumption about the similarities between C# and Java was not correct after some reading about C#. I found many powerful concepts in C# that I love to see in Java. Anyway, much of what I read made sense to me except one thing. I keep hearing that C# is component oriented language! Wikipedia was really useless about this concept.

当您说C#是面向组件的语言时,它的简单含义是什么?一个简单的示例将不胜感激。

What does it mean in simple terms when you say, C# is component oriented language?! A simple example would be appreciated.

推荐答案

我觉得面向组件和面向对象之间的界线是非常模糊,在大多数情况下,可以放心地假设它们是同一件事。

I feel that the line between "component-oriented" and "object-oriented" is very blurry and in most cases it is safe to assume that they are the same thing.

话虽如此(并且鉴于我不知道您对对象的了解,面向对象的编程),我提交了这篇出色的Wikipedia文章,供您阅读:

That being said (and given the fact that I am unaware of your knowledge about object-oriented programming) I submit this excellent Wikipedia article for you to read:


面向对象编程(OOP)是一种
编程范例,它使用
个对象 –包含
个数据字段的数据结构和方法-以及它们在设计应用程序
和计算机程序中的
交互作用。编程
技术可能包括诸如信息隐藏,数据
抽象,封装,
模块化,多态性和
继承之类的功能。直到1990年代初,它才在主流软件应用程序开发中不常用。
现在,许多现代编程语言
支持OOP。

Object-oriented programming (OOP) is a programming paradigm that uses "objects" – data structures consisting of datafields and methods – and their interactions to design applications and computer programs. Programming techniques may include features such as information hiding, data abstraction, encapsulation, modularity, polymorphism, and inheritance. It was not commonly used in mainstream software application development until the early 1990s. Many modern programming languages now support OOP.

您可能还想阅读基于组件的软件工程,它在整个系统中应用了类似的概念:

You may also want to read Component-based software engineering which applies similar concepts across an entire system:


基于组件的软件工程
(CBSE)(也称为基于组件的
开发(CBD))是
软件工程的一个分支,即
的优先级,这是在
方面关注点分离的问题,在整个
给定的软件系统中,
的功能广泛。这种做法

软件本身和组织
短期和长期的
短期和长期收益中带来同样广泛的
收益。

Component-based software engineering (CBSE) (also known as component-based development (CBD)) is a branch of software engineering, the priority of which is the separation of concerns in respect of the wide-ranging functionality available throughout a given software system. This practice brings about an equally wide-ranging degree of benefits in both the short-term and the long-term for the software itself and the organisation that sponsors it.

例如,在整个软件
工程中,组件被视为服务
导向服务的起始平台
的一部分。 Web服务,
和最近的面向服务的
体系结构(SOA)-将
组件转换为服务
,随后继承其后的其他
特性
的普通分量。

Components are considered to be part of the starting platform for service orientation throughout software engineering, for example Web Services, and more recently, Service-Oriented Architecture (SOA) - whereby a component is converted into a service and subsequently inherits further characteristics beyond that of an ordinary component.

这篇关于当您说C#是面向组件的语言时,这意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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