首页> 外文期刊>Software world >Writing Object-Oriented Code
【24h】

Writing Object-Oriented Code

机译:编写面向对象的代码

获取原文
获取原文并翻译 | 示例

摘要

Software programming languages have always been designed around two fundamental concepts: data and the code that acts on the data. Languages have evolved over time to change the way these two concepts interact. Originally, languages such as Pascal and C invited developers to write software that dealt with code and data as two separate, disconnected entities. This approach gives developers the freedom, but also the burden, to choose how their code handles the data. Furthermore, this approach forces a developer to translate the real world that needs to be modeled using software into a computer-specific model using data and code. Languages like Pascal and C were built around the concept of a procedure. A procedure is a named block of code, just as a C# method is built today. The style of software developed using these kinds of languages is called procedural programming. In procedural programming, the developer writes one or more procedures and works with a set of independent variables defined in the program. All procedures are visible from any piece of code in the application, and all variables can be manipulated from any piece of code?
机译:始终围绕两个基本概念设计软件编程语言:数据和作用于数据的代码。语言随着时间的流逝而发展,以改变这两个概念的交互方式。最初,Pascal和C之类的语言邀请开发人员编写将代码和数据作为两个独立的,相互独立的实体进行处理的软件。这种方法为开发人员提供了自由,也为他们选择代码如何处理数据提供了负担。此外,这种方法迫使开发人员将需要使用软件建模的真实世界转换为使用数据和代码的计算机特定模型。 Pascal和C之类的语言都是围绕过程的概念构建的。过程是一个已命名的代码块,就像今天构建了C#方法一样。使用这些语言开发的软件样式称为过程编程。在过程编程中,开发人员编写一个或多个过程,并使用程序中定义的一组自变量。所有过程都可以从应用程序中的任何代码可见,并且可以从任何代码中操纵所有变量吗?

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号