21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

POLYMORPHISM:-<br />

Working on Polymorphism<br />

Polymorphism is a characteristic of being able to assign a different behavior or value in a<br />

subclass, to something that was declared in a parent class. For example, a method can be<br />

declared in a parent class, but each subclass can have a different implementation of that<br />

method. This allows each subclass to differ, without the parent class being explicitly aware<br />

that a difference exists.<br />

CLAUSES REGARDING POLYMORPHISM:-<br />

1.Allows one interface to be used for a general class of actions.<br />

2.When objects from different classes react differently to the same procedural call.<br />

3.User can work with different classes in a similar way, regardless of their implementation.<br />

4.Allows improved code organization and readability as well as creation of “extensible”<br />

programs.<br />

5.Although the form of address is always the same, the implementation of the method is<br />

specific to a particular class.<br />

Go to SE24 T-code.<br />

Press create button.

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

Saved successfully!

Ooh no, something went wrong!