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.

Abstract Classes and Methods in <strong>Object</strong> <strong>Oriented</strong><br />

Programming<br />

Abstract Class: Classes which contain one or more abstract methods or abstract<br />

properties, such methods or properties do not provide implementation. These abstract<br />

methods or properties are implemented in the derived classes (Sub-classes).<br />

Abstract classes does not create any instances to that class objects<br />

Use of Abstract class:<br />

We can define some common functionalities in Abstract class (Super-class) and those can<br />

be used in derived classes (Sub classes).<br />

Step-by-Step Approach to create Abstract classes and Methods<br />

TCode: SE24<br />

Enter the name of class as 'Z_DEMO_ABS_CLASS' and press Create Button<br />

A pop-up window is displayed, then select "Class" radio button and<br />

Press enter<br />

It will go to the next screen.

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

Saved successfully!

Ooh no, something went wrong!