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

Simply - OOP - Simply

on

  • 2,782 views

Session from ILUG 2008, see http://www.ilug2008.org for details...

Session from ILUG 2008, see http://www.ilug2008.org for details

Description:
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.

Statistics

Views

Total Views
2,782
Views on SlideShare
2,773
Embed Views
9

Actions

Likes
4
Downloads
230
Comments
0

1 Embed 9

http://www.slideshare.net 9

Accessibility

Categories

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.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
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: http://www.sxc.hu/photo/998467

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 http://www.assono.de http://www.assono.de/blog
  • 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: www.assono.de/blog Email: [email_address] Phone: +49/4307/900-401