Concept of Polymorphism in ABAP Objects
Page 1 of 1
Concept of Polymorphism in ABAP Objects
Polymorphism refers to the property by which objects belonging to different classes are able to respond to the same message, but in different forms, an essential requirement of polymorphism is the ability to refer to objects without any regard to their class.
This necessitates the use of a single reference variable to refer to the object of different class. For example consider two classes, say scooter and bike, both the scooter and bike have a method called engine_power, and the method is implemented differently in different class. The concept of polymorphism says that we should have a common point of access to the method engine _power implemented differently. Now the question comes how do we achieve polymorphism.
The concept of polymorphism can be shown through inheritance as well as
interface.
Uma_ABAP- Posts : 56
Join date : 2012-03-31
Similar topics
» Concept of Polymorphism in ABAP Objects
» Polymorphism using interface in ABAP Objects
» Polymorphism using inheritance in ABAP Objects
» Creating multiple Objects in ABAP Objects
» Difference between Procedural ABAP and ABAP Objects
» Polymorphism using interface in ABAP Objects
» Polymorphism using inheritance in ABAP Objects
» Creating multiple Objects in ABAP Objects
» Difference between Procedural ABAP and ABAP Objects
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Mon Aug 20, 2012 4:37 pm by Admin
» Difference between Type and Like
Thu Jun 07, 2012 2:40 pm by Admin
» How to handle table control fields in Module Pool program?
Wed May 09, 2012 2:41 am by govind
» Three tables inner join in SAP
Thu May 03, 2012 4:47 pm by Uma_ABAP
» Creating table type in ABAP
Sat Apr 28, 2012 9:03 pm by Uma_ABAP
» Creating user defined types and structures in ABAP
Sat Apr 28, 2012 8:55 pm by Uma_ABAP
» Creating Dynamic Internal Table and Dynamic Field catalog in SAP-ABAP
Fri Apr 27, 2012 11:00 am by Admin
» Copy Custom PF-Status from Standard program to Custom Program in ALV
Thu Apr 26, 2012 9:52 pm by Uma_ABAP
» Calculate/find number of working days between two dates in SAP
Tue Apr 24, 2012 2:06 pm by Uma_ABAP