sap abap: type ref to

来源:百度知道 编辑:UC知道 时间:2024/05/14 17:29:19
DATA: r1 TYPE REF TO c1.

在这里 TYPE REF TO 是 定义 什么类型 的 ???
所申明的变量 怎么使用,,,什么时候 使用。。。

属于ABAP面向对象编程,c1是一个类,r1定义了这个类的对象

The statement is usually used to define a variable with reference to a class,which means a reference type. If you have
ever learnt some basic knowledge about object-oriented programming such as C++ or Java,you will find it similar considerably.