ABAP 是面向过程编程还是面对对象编程?

ABAP是一种混合编程语言,它同时支持过程编程和面向对象编程。过程编程基于模块化,利用事件块、对话模块等经典处理块。ABAPObjects引入了类的概念,实现了用方法进行模块化。这种语言的兼容性使得类可以在经典处理块中使用,而传统的程序和过程也能在对象方法内调用。这种向下兼容的设计确保了既有程序和可复用功能模块的持续适用性。
摘要由CSDN通过智能技术生成

文章目录

1.定义

ABAP is a hybrid programming language that supports both a procedural and an object-oriented programming model. The procedural programming model is based on the modularization of programs in classic processing blocks (event blocks, dialog modules, function modules, and subroutines).
In ABAP Objects, the class conceptually supersedes the classic program, and modularization is implemented using methods. From a technical point of view, classes are still declared and implemented in programs.

Both models possess interoperability, meaning that classes can be accessed in classic processing blocks and classic programs and procedures can be called within methods. The hybrid nature of the language is mainly due to the downward compatibility. This is because ABAP has procedural roots, and the introduction of the object-oriented programming model was intended to make sure entire programs and reusable procedures (primarily function modules) could still be used.

以下是来自SAP官方的定义,是一种混合式编程 语言,既是面向过程,又面向对象。过程编程模型是基于模块化,用经典的模块化(事件模块,对话块,函数块,子例程).

2.参考:

1.sap 官方
2:面向对象
3.面向对象

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值