Download presentation
Presentation is loading. Please wait.
Published byBertram Stanley Modified over 8 years ago
1
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 1 Fundamentals of Class Design by Michel de Champlain
2
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 2 In general uSpeaker wMichel de Champlain wProfessor DECE Concordia University, Canada wSoftware Architect at DeepObjectKnowledge uPresentation wBasic wFocused on move from non-OO tot OO programming
3
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 3 Presentation Overview uexplanation of principles of abstraction wevolution wpros/contras uuse of classes as abstraction mechanisms uguidelines/suggestions on using classes
4
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 4 Abstractions uexplanation of principles of abstractions wdefinition of abstraction wprocedural abstraction vs data abstraction wdefinition of module interface implementation wCDS, ADS and ADT wADS: if one instance is enough (mouse, keyboard) wADT: if multiple instances exists (stack, window)
5
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 5 Classes and Objects uClasses as abstraction mechanisms wdefinition of a class wdefinition of an object
6
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 6 Rules of Thumb uGuidelines/suggestions on using classes wdo not make fat classes wkeep interfaces simple wonly use a method when needed not `by default` a getter/setter pair wmethods should be complete minimal foundational
7
K ATHOLIEKE U NIVERSITEIT L EUVEN D EPT. OF C OMPUTER S CIENCE ESC Europe 1999 report 7 Rules of Thumb uGuidelines/suggestions on using classes wdo not use large interfaces w`Special` methods constructor copy constructor assignment description (debugging) equality hash print
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.