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

Simply - OOP - Simply

Editor's Notes

  • #2 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