Objects

Hi ,I know this may be some things that is hitting the concepts of object oriented.But I am not getting one thing that how making the classes in the Lotus is helpfull.Like in which cases we should make the classes .I worked in java , there i understand that concept but in lotus I need some clarification.

If possible can some one explain me with example.I have made the classes but that can also be done very systematically with functions.

I request all to share your views.

Thanks for your time.

Subject: Objects

If you are familiar with Java, then can write your code in Java itself - Lotus does support Java.The Agents written in Java are quite similar to a stand alone java program. However for thread management, Lotus specifies that entry point of execution should be at NotesMain method in JavaAgent class.

Eventhough it is mandatory that your code should start within JavaAgent class, you can create your own java classes, and transfer control to it.

hmm… let me know if you need some more information.

Regards

Litty Joseph

Subject: RE: Objects

Thanks Joseph ,

But now I want to know does lotus support all things of OOps or ???if not then what is the use of implemenntations of classes by Lotus script.?

Thanks once again.

Subject: RE: Objects

Classes in Lotus do support Inheritance, Public/Private/Protected acces modifiers, etc etc… But it will hit wall if you go much beyond to Interfaces and things like that. If you happen to know VBScript, then you may find LotusScript similar in its OOPs capabilities.

Mainly Lotus script code is written for two purposes: as Event handlers and as Agents.

As you know event handler code is generally light weight and often coded without a Class. Technically it’s possible.

For agents, the concept of classes has more practical use.

The classes could be written in a Script Library, and agents can ‘Use’ (import) it.

in short the answer is Yes, lotus support classes.