官术网_书友最值得收藏!

Introduction

This chapter explores recipes related to ABAP objects. Two useful features of the object-oriented ABAP are storage options in the shared memory as shared objects, and in the database as objects of persistent classes. The details about both the prerequisites as well as the necessary steps needed to created shared memory-enabled objects and persistent objects will be discussed later in this chapter.

Moreover, design patterns are very important in object-oriented programming. In this chapter, we will see how to implement three of them using ABAP objects, namely the adapter, singleton, and the factory design. We will create a class with a factory method design. Later, we will show how this class may be modified in order to behave like a singleton class. Finally, we will see how an object of one class may be converted to that of another using an adapter class. The examples are kept simple in order to emphasize on the design pattern concept.

For this chapter, we assume that the reader has basic knowledge of the ABAP objects, and is familiar with the class-builder transaction.

主站蜘蛛池模板: 黄冈市| 南陵县| 宁津县| 澄城县| 永胜县| 开封县| 通河县| 锡林郭勒盟| 宁陵县| 河间市| 丽江市| 苏州市| 武强县| 商洛市| 舞钢市| 星座| 东莞市| 民权县| 桃江县| 古丈县| 开阳县| 阿克苏市| 万年县| 三穗县| 建平县| 奉节县| 麦盖提县| 灯塔市| 阿拉善右旗| 九江县| 泰安市| 永昌县| 华安县| 乐安县| 井冈山市| 东兴市| 崇左市| 綦江县| 封丘县| 方城县| 鸡东县|