1 / 14

Programmazione ad oggetti & Objective C roberto leombruni - dicembre 1999

Programmazione ad oggetti & Objective C roberto leombruni - dicembre 1999. Menu del giorno… Cos’è l’OOP - I : Intuizione e pubblicità Cos’è l’OOP - II : I “principi fondamentali” Intermezzo: MakeFile La “prima volta”: costruiamo un Oggetto Encapsulation e visibilità delle variabili.

carrington
Télécharger la présentation

Programmazione ad oggetti & Objective C roberto leombruni - dicembre 1999

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programmazione ad oggetti & Objective C roberto leombruni - dicembre 1999

  2. Menu del giorno… • Cos’è l’OOP - I : Intuizione e pubblicità • Cos’è l’OOP - II : I “principi fondamentali” • Intermezzo: MakeFile • La “prima volta”: costruiamo un Oggetto • Encapsulation e visibilità delle variabili

  3. Start istruzione istruzione istruzione istruzione istruzione istruzione Stop Cos’è l’OOP Programmazione tradizionale Programmazione ad oggetti

  4. Lo zio... 1. luks jdfha lsjdh flkjas hlkajs 2. asdlj òoia ori aòeorj gae rgka 3. sifpoi akjg lkj woei ròklajs df 4. askdfj oi eorit wk mv 5. lskjdf o 6. iuertiou wer tyhjfdgm 7. ertyuiert dfjg 8. sdlk oi lwkjrtg 9. kjo idf kjlskaduf retwtr 10. jsf loiroiuert pw 11. llopoisu jfd gjs 12. lkjs oi sfuoi uoiu sfsf 13. oiu koru edu oipewe ...

  5. ... 1. luks jdfha lsjdh flkjas hlkajs 2. asdlj òoia ori aòeorj gae rgka 3. sifpoi akjg lkj woei ròklajs df 4. askdfj oi eorit wk mv 5. lskjdf o 6. iuertiou wer tyhjfdgm 7. ertyuiert dfjg 8. sdlk oi lwkjrtg 9. kjo idf kjlskaduf retwtr 10. jsf loiroiuert pw 11. llopoisu jfd gjs 12. lkjs oi sfuoi uoiu sfsf 13. oiu koru edu oipewe ...

  6. ... 1. luks jdfha lsjdh flkjas hlkajs 2. asdlj òoia ori aòeorj gae rgka 3. sifpoi akjg lkj woei ròklajs df 4. askdfj oi eorit wk mv 5. lskjdf o 6. iuertiou wer tyhjfdgm 7. ertyuiert dfjg 8. sdlk oi lwkjrtg 9. kjo idf kjlskaduf retwtr 10. jsf loiroiuert pw 11. llopoisu jfd gjs 12. lkjs oi sfuoi uoiu sfsf 13. oiu koru edu oipewe ...

  7. …l’architetto

  8. Spot! • 3 buone ragioni x l’OOP • È un modo naturale di programmare • “Costringe” a essere chiari e ordinati • Sembra fatta apposta per le simulazioni

  9. Gli antenati • SIMULA-67. Dahl - Nygaard, ~1970 • SmallTalk. Alan Kay, 1972 • C++, Objective-C, Java... le “capsule” ereditarietà

  10. I “principi fondamentali”… • (classici) • Encapsulation • Inheritance • “Polimorphysm”

  11. L’Encapsulation Variabili Metodi

  12. L’Eredità Classe “root” sotto-classe sotto-sotto-classe

  13. ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- Intermezzo: Makefile Listati • 1. Si compilano tutti i sorgenti • 2. Si “legano” insieme. • 3. Si fa un po’ di debugging. • 4. Si ricompilano solo i files modificati.

  14. Makefile: un esempio...

More Related