‎2007 Jun 27 8:35 AM
can any some detailed information,faq's regarding only encapsulation,abstraction,not other than that.I will be very thankful to those who have done it.
‎2007 Jun 27 9:29 AM
This sap help link will be very useful to understand basic ABAP object concepts.
http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
‎2007 Jun 27 10:02 AM
Hi,
Check with the below link:
/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action
Regards
Sayee
‎2007 Jun 27 1:22 PM
Hi Sandeep,
Defining attributes of a class in the private visibility section is called Information Hiding or Encapsulation.
<u><b>Advantage</b></u>
If the attributes are defined as public, the risk would be too large since a user might forget to supply value to attribute or specify an inconsistent value to an attribute.
So the attributes are defined as private so that user cannot directly access them but through methods which are defined in the public section. A strict syntax check governs method calls to check that all obligatory parameters are transferred. Methods can also perform a consistency check and raise an exception if an error occurs.
<u><b>Disadvantage</b></u>
Assigning values to attributes through methods instead of direct assignment
(for public attributes) require slightly more runtime.
Award points if found useful.
Regards
Indrajit