Simple Local Class
Introduction : As a beginner, let us consider a short & simple example of a program using Object Oriented Concept. We will simply cover the following basic concepts: Define & Implement Class C. Create Visibility for the attributes of Class C. Define & Implement Method M. Create an Object for Class C. Call a Method M for Class C. Steps : Create an executable program in SE 38. Program: ZOABAP_SIMPLEPROG. 2. Define Class C. Here we will create a Visibility for the attributes of the class as PUBLIC SECTION. For parameters PART1, PART2, FULL. For Method M. Class Attribute Visibility Public: All the components which are assigned to this section are public and can be accessed outside the class, methods of the subclass, and the methods of the class itself. They form the external interface of the class. Protected: The components of this section are protected and can be accessed by the methods of subclass ...