» The Object in OOP (programming)

The Object in OOP (programming)

1967
  • Kristen Nygaard
  • Ole-Johan Dahl
Computer programming workspace showcasing object-oriented programming concepts.

In object-oriented programming (OOP), an object is a fundamental entity that bundles data (attributes or properties) and the methods (functions or procedures) that operate on that data. Objects are instances of classes, which act as blueprints. This paradigm models real-world entities, making complex systems easier to manage by grouping related state and behavior together into self-contained units.

The concept of an “object” is the cornerstone of object-oriented programming. Unlike procedural programming, which organizes code around actions or logic, OOP organizes code around data, or “objects”. An object is a self-contained unit that has a state and behavior. The state is represented by its attributes (also called fields, properties, or instance variables), which are essentially data. The behavior is defined by its methods (also called functions or procedures), which are the operations that can be performed on the object’s data. For example, a ‘Car’ object might have attributes like ‘color’, ‘speed’, and ‘fuelLevel’, and methods like ‘accelerate()’, ‘brake()’, and ‘refuel()’.

This bundling of data and methods is a key feature that distinguishes OOP. The class serves as a template or blueprint from which individual objects are created. This process is called instantiation. Each object created from the same class will have the same structure (attributes and methods), but the values of its attributes can be different, representing a unique state. This approach allows programmers to model real-world or abstract entities in a more intuitive way, leading to code that is more modular, reusable, and easier to maintain and debug. The idea originated with the Simula language, designed for creating simulations, where modeling real-world objects was a primary requirement.

UNESCO Nomenclature: 1203
- 计算机科学

类型

抽象系统

中断

革命

使用方法

广泛使用

前体

  • the concept of data structures (records/structs) in earlier languages like cobol and algol
  • subroutines and functions in procedural programming
  • theories of abstract data types (adt)
  • the development of the simula 编程语言 for simulation purposes

应用

  • graphical user interfaces (guis)
  • simulation and modeling systems
  • relational database management systems (rdbms)
  • web application frameworks like django and ruby on rails
  • game development engines like unity and unreal engine

专利:

NA

潜在的创新想法

级别需要会员

您必须是!!等级!!会员才能访问此内容。

立即加入

已经是会员? 在此登录
Related to: object, class, instance, attribute, 方法, state, behavior, oop, data bundling, instantiation.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

迎接新挑战
机械工程师、项目、工艺工程师或研发经理
有效的产品开发

可在短时间内接受新的挑战。
通过 LinkedIn 联系我
塑料金属电子集成、成本设计、GMP、人体工程学、中高容量设备和耗材、精益制造、受监管行业、CE 和 FDA、CAD、Solidworks、精益西格玛黑带、医疗 ISO 13485

我们正在寻找新的赞助商

 

您的公司或机构从事技术、科学或研究吗?
> 给我们发送消息 <

接收所有新文章
免费,无垃圾邮件,电子邮件不分发也不转售

或者您可以免费获得完整会员资格以访问所有受限制的内容>这里<

相关发明、创新和技术原理

滚动至顶部

你可能还喜欢