Beruflich Dokumente
Kultur Dokumente
The Class Builder allows you to create and maintain global ABAP
classes and interfaces. Both of these object types, like global data
types, are defined in the ABAP Repository, thus composing a central
class library. Together, they form a central class library and are
visible throughout the system. You can display existing classes and
interfaces in the class library using the Class Browser.
Features
Use the Class Builder to:
· Display an overview (in the Class Browser) of global object types
and their relationships.
· Implement methods.
· Redefine methods
• Class
Create Inheritance
When you choose this function, the Inherits from dialog box appears.
You can define the inheritance relationship here by specifying the
name of the superclass.
You can define the superclass as any class from the class library
that is not defined as final.
• Description
Re: CREATING METHODS AND CLASS Reply
Posted: Jan 23, 2008 12:43 PM in response to:
santhosh kumar
hi,
T-code for class builder is se24
Methods describe how an object behaves. You implement them
using functions defined within classes. They are operations that
change the attributes of a class or interface. There are instance-
and static methods. Instance methods refer to a certain class
instance, whereas static methods are common to all the class
instances. Static methods can only address static attributes.
Prerequisites
Procedure
To create methods for classes and interfaces:
Change to the Class Editor.
Choose Methods.
To create a method, make the following entries:
• Methods
• Visibility
Define the visibility of methods for the user of the class. Public
assigns the method to the public area of the class and the method
can be called by every user of the class. If you make the method
protected, it is visible to and can be used by the class itself and
any of its subclasses. If the method is private, it is only visible in
and available to the class itself. Private methods do not form part
of the external point of contact between the class and its users.
• Modeled only
If the flag is set, no entry will be made in the class pool. You
cannot access the components at runtime.
• Description