0% found this document useful (0 votes)
11 views2 pages

Event 1

Uploaded by

likhita A.N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Event 1

Uploaded by

likhita A.N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

class company1 defination.

public section.
events:emp1.
Methods:Comp_enter.

endclass.

start-of-selection.

Data:COMP1 TYPE REF TO COMPANY1.


CREATE OBJECT COMP1.

class company1 Imlementation.

method Comp_enter.

Raise emp1.

endmethod.

endclass.

*************************************************************
**************************************************************

Class employee Defination.

public Section.

Methods:emp_enter for event emp1 of company1.

endclass.

start-of-selection.

Data:EMP11 TYPE REF TO COMPANY1.


CREATE OBJECT EMP1.

******************************************************************
SET HANDLER EMP1->EMP_ENTER FOR comp1.

write/ 'cALLING Time:- 1'.

CALL METHOD comp1->Comp_enter.


skip 2.

write/ 'cALLING Time:- 2'.

CALL METHOD comp1->Comp_enter.

*********************************************************************

class employee Imlementation.

method emp_enter.

Write:/ 'Employee Entering the company' color 5.

endmethod.

endclass.

You might also like