21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with Interfaces<br />

In <strong>ABAP</strong> interfaces are implemented in addition to, and independently of classes. An<br />

interface only has a declaration part, and do not have visibility sections. Components<br />

(Attributes, methods, constants, types) can be defined the same way as in classes.<br />

Interfaces are listed in the definition part of the class, and must always be in the<br />

PUBLIC SECTION.<br />

Operations defined in the interface are implemented as methods of the class. All<br />

methods of the interface must be present in the implementation part of the class.<br />

Attributes, events, constants and types defined in the interface are automatically<br />

available to the class carrying out the implementation.<br />

Interface components are addressed in the class by ~<br />

Go to SE24 provide interface name.<br />

Interface name start with ZIF_<br />

Press create button.<br />

Provide description.<br />

Save it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!