Learn Object Oriented Pogramming ( OOPS )

Definitions Public attributes Private attributes Instance attributes Static attributes Public methods Private methods Constructor method Static constructor Protected components Polymorphism Public attributes Public attributes are defined in the PUBLIC section and can be viewed and changed from outside the class. There is direct access to public attributes. As a general rule, as few public attributes … Read more

Class vs. interface

Also read Abstract Vs Interfaces Some say you should define all classes in terms of interfaces, but I think recommendation seems a bit extreme. I use interfaces when I see that something in my design will change frequently. For example, the Strategy pattern lets you swap new algorithms and processes into your program without altering … Read more

Class vs. interface

Also read Abstract Vs Interfaces Some say you should define all classes in terms of interfaces, but I think recommendation seems a bit extreme. I use interfaces when I see that something in my design will change frequently. For example, the Strategy pattern lets you swap new algorithms and processes into your program without altering … Read more

Abstract Vs Interfaces

abstract An formally unfinished class or method, marked with the keyword abstract. It is a way of preventing someone from instantiating a class that is supposed to be extended first. An abstract class is deliberately missing some or all of the method bodies. An abstract method is deliberately missing its method body. An abstract class … Read more

Abstract Vs Interfaces

abstract An formally unfinished class or method, marked with the keyword abstract. It is a way of preventing someone from instantiating a class that is supposed to be extended first. An abstract class is deliberately missing some or all of the method bodies. An abstract method is deliberately missing its method body. An abstract class … Read more

Object Oriented ALV-Using two Containers we can display data

*&———————————————————————**& Report Z_OO_ALV*&*&———————————————————————**& We can Use Two containers in OOALV*&*&———————————————————————* REPORT z_oo_alv LINE-COUNT 50. *types gt_struct type sflight. DATA BEGIN OF gt_struct.INCLUDE STRUCTURE sflight.DATA rcol(4) TYPE c.DATA colors TYPE lvc_t_scol.DATA END OF gt_struct.*ALV GRIDs DATA gr_alvgrid TYPE REF TO cl_gui_alv_grid.DATA gr_alvgrid1 TYPE REF TO cl_gui_alv_grid. DATA gc_custom_control_name TYPE scrfname VALUE ‘CC_ALV’.DATA gc_custom_control_name1 TYPE scrfname VALUE … Read more