Simply - OOP - Simply
Upcoming SlideShare
Loading in...5

Simply - OOP - Simply



Session from ILUG 2008, see for details...

Session from ILUG 2008, see for details

Do you have objections to objects?
Haven't you visited classes about classes?
Is abstraction still too abstract for you?
Don't you use methodic methods and proper properties?
Then come to this introductory session about object-oriented programming (OOP) in LotusScript, where you can learn:
- why delegation might be better then inheritance,
- why hiding information can be helpful sometimes and
- how you can use polymorphism to teach old dogs new tricks.



Total Views
Views on SlideShare
Embed Views



1 Embed 9 9



Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • I'll mainly talk about the what is and the why of OOP. The how — i. e. the syntax — is relatively easy to look up, when you've understood the concepts. Image:

Simply - OOP - Simply Simply - OOP - Simply Presentation Transcript

  • simply — OOP — simply Let's talk about concepts .
  • Thomas Bahn [email_address] +49/4307/900-401 assono GmbH
  • You can use a pocket watch.
  • The manufacturer must know how to build the clock.
  • A concept called information hiding . Reduce complexity by hiding details beneath the surface.
  • This is the power of OOP .
  • Everything is an object . Everything consists of objects.
  • There are many objects. Concurrently . Objects interact .
  • OOP maps real world objects to software objects.
  • A concept called encapsulation . Object = state + behavior + identity
  • „Think of an object as a fancy variable; it stores data, but you can „make requests“ to that object, asking it to do operations on itself.“ Bruce Eckel, Thinking in Java
  • Models of an office chair
  • A concept called abstraction . Reduce complexity by ignoring unnecessary details.
  • This is the power of OOP .
  • A concept called class .
  • Divide and conquer : Software design class for class
  • This is the power of OOP .
  • A concept called inheritance .
  • This is the power of OOP .
  • A concept called polymorphism .
  • Change behavior without changing code.
  • This is the power of OOP .
  • Everyone has his responsibilities . Every object, too.
  • A concept called delegation .
  • This is the power of OOP .
  • Construction and destruction of objects
  • Let's talk about principles . Keep it simple .
  • The public interface of a class is a contract .
  • Make the public interface as small as possible. You can always add later, but never remove , nor modify .
  • Remember: You can always change the private internals .
  • Reduce coupling between objects.
  • Test your classes separately first. A concept called Unit Testing .
  • Let's talk about OOP in LotusScript .
  • Demo of the Watch class.
  • Demo of the Email class.
  • The end Ask questions now — or later Blog: Email: [email_address] Phone: +49/4307/900-401