‎2010 Jun 11 4:36 PM
dear all,
my question when we define data type in private or protected section and when we shift these declaration
to public section or if we swap these declaration among these section sometime or every time we find no difference
in output.
and my second question
in my programme we define interface in starting of report and again they define within a class,in class interface define with typesin public section and and in starting in report it define with a method with importing parameter
thanks
tarun
f1
Edited by: tarun99 on Jun 11, 2010 11:04 PM
‎2010 Jun 11 7:04 PM
When you change the attribute visibility from Private to Public or vice versa, the consumer or user of that class would get affected. So, if you have a global class which has a public attribute which is being used in a program and when you change this to Private attribute, your program would give the runtime error is you run it or syntax error if you compile it.
The same way, when you change the visibility of Protected Attributes to Private Attributes, you need to make sure all of your Subclasses are error free.
For your second question, you define the interface using the INTERFACE and you use this interface in your concrete class using the keyword INTERFACES. You would write the implementation of the methods of this interfaces in this concrete class once your use it with keyword INTERFACES.
Regards,
Naimesh Patel
‎2010 Jun 11 10:13 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:13 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:13 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:14 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:14 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:14 PM
dear naimesh ,
first of all thanks to reply
you are right , can you please brief me about types declaration in different section and how can we relate
with respect to execution steps.
tarun
‎2010 Jun 11 10:33 PM
dear naimesh,
you answer is very helpful ,will you kindly give me detail about types and data declaration in different section
how can we use .i am little bit confuse about.
thanks
tarun
‎2010 Jun 11 10:33 PM
dear naimesh,
you answer is very helpful ,will you kindly give me detail about types and data declaration in different section
how can we use .i am little bit confuse about.
thanks
tarun
‎2010 Jun 11 10:33 PM
dear naimesh,
you answer is very helpful ,will you kindly give me detail about types and data declaration in different section
how can we use .i am little bit confuse about.
thanks
tarun
‎2010 Jun 12 8:34 AM
dear naimesh,
thanks to your reply,kind provide me types decleration steps with respect to the execution steps
in various section and in terfaces
tarun
‎2010 Jun 12 8:23 PM
Hi tarun,
public protected and private section define the visibility of attributes and methods: PUBLIC can be seen and used from outside and inside the object. PROTECTED is only visible in the class it self and any inherited classes. PRIVATE is visible only in the class.
Attributes should be always private, their values should be used only by SETter and GETter methods. Other languages and development environments like ECLIPSE for JAVA can generate SET and GET methods.
The transition of ABAP is still under way.
Regards
Clemens
‎2010 Aug 11 8:49 AM