Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Simply - OOP - Simply

2,121 views

Published on

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.

Published in: Technology, Business
  • Be the first to comment

Simply - OOP - Simply

  1. 1. simply — OOP — simply Let's talk about concepts .
  2. 2. Thomas Bahn [email_address] +49/4307/900-401 assono GmbH http://www.assono.de http://www.assono.de/blog
  3. 3. You can use a pocket watch.
  4. 4. The manufacturer must know how to build the clock.
  5. 5. A concept called information hiding . Reduce complexity by hiding details beneath the surface.
  6. 6. This is the power of OOP .
  7. 7. Everything is an object . Everything consists of objects.
  8. 8. There are many objects. Concurrently . Objects interact .
  9. 9. OOP maps real world objects to software objects.
  10. 10. A concept called encapsulation . Object = state + behavior + identity
  11. 11. „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
  12. 12. Models of an office chair
  13. 13. A concept called abstraction . Reduce complexity by ignoring unnecessary details.
  14. 14. This is the power of OOP .
  15. 15. A concept called class .
  16. 16. Divide and conquer : Software design class for class
  17. 17. This is the power of OOP .
  18. 18. A concept called inheritance .
  19. 19. This is the power of OOP .
  20. 20. A concept called polymorphism .
  21. 21. Change behavior without changing code.
  22. 22. This is the power of OOP .
  23. 23. Everyone has his responsibilities . Every object, too.
  24. 24. A concept called delegation .
  25. 25. This is the power of OOP .
  26. 26. Construction and destruction of objects
  27. 27. Let's talk about principles . Keep it simple .
  28. 28. The public interface of a class is a contract .
  29. 29. Make the public interface as small as possible. You can always add later, but never remove , nor modify .
  30. 30. Remember: You can always change the private internals .
  31. 31. Reduce coupling between objects.
  32. 32. Test your classes separately first. A concept called Unit Testing .
  33. 33. Let's talk about OOP in LotusScript .
  34. 34. Demo of the Watch class.
  35. 35. Demo of the Email class.
  36. 36. The end Ask questions now — or later Blog: www.assono.de/blog Email: [email_address] Phone: +49/4307/900-401

×