O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Object Oriented Design, Analysis and Programming

Clare Daly Project Management Inglês 25 flashcards

Flashcards do conjunto (25)

  1. 1ClassBlueprint for an object. Defines the generic behaviour of an object and the type of data it might store. Named using a noun
  2. 2ObjectInstance of a class. Represents data and related behaviours
  3. 3Advantages of Objects and ClassesAid generalization and specialization
    Reuse
    Encourages accountability and responsibility
    Represents the real world
  4. 4Disadvantages of Objects and ClassesCan limit creativity
    RIsk of overcomplicating design i.e. inheritence, abstraction, encapsulation
  5. 5PublicAccessible from anywhere within or without the application
  6. 6PrivateOnly accessible within the class
  7. 7ProtectedOnly accessible with the class and its subclasses
  8. 8AttributeA named property of a class that describes a range of values that instances of the property may hold
  9. 9OperationAn implementation of a service that can be requested from any object of the class to affect behaviour
  10. 10CRC ProcessClasses, Responsibility and Collaborations
    - List of candidate classes
    - What do they need to know
    - What they do
    - Who they need to work with to do this (collaborations)
  11. 11EncapsulationThe process of an object controlling outside access to its inernal data
    Client only knows how to call the methods, not how the methods are implemented
    Data attributes are made private
    Visible services are made public
  12. 12Benefits of encapsulationCan change the implementation of the object without affecting the whole program
    Any change of the data representation will affect only the implementation of the methods
  13. 13CohesionA measure of how well a component "fits together"
    Should implement a single logical entity or function
    When a change has to be made, it is localised in a single cohesive component
  14. 14CouplingA measure of the inter-connections between system components
    Loose coupling means component changes are unlikely to affect other components
    Avoid placing too many responsibilities within a single object
  15. 1510 OOP Design principles (Head FIrst OO Anaysis and Design)1. Don't repeat yourself
    2. Ecapsulate what changes
    3. Open Closed esign principle
    4. Single Responsibility Principle
    5. Dependency Inversion Principle
    6. Favour Composition over Inheritence
    7. Liskov Substitution Principle
    8. Interface Segregation Principle
    9. Programming for interface
    10. Delegation principle
  16. 16Don't Repeat Yourself (DRY)Avoid duplication in code
  17. 17Encapsulate what changesHide implementation detail, help maintenance
  18. 18Open Closed design principleOpen for extension, closed for modification
  19. 19Single Responsibility Principle (SRP)One class should do one thing and do it will
  20. 20Dependency Inversion Principle (DIP)Don't ask, let the framework give it to you
  21. 21Favour Composition over InheritenceCode reuse without cost of inflexibility
  22. 22Liskov Substitution Principle (LSP)Sub-type must be substitutable for super type
  23. 23Interface Segregation Principle (ISP)Avoid monolithic interface, reduce pain on client side
  24. 24Programming for interfaceHelp maintenance, improve flexibility
  25. 25Delegation principleDon't do all things by yourself, delegate it

Informações

Descrição
Project Management FlashCards sobre Object Oriented Design, Analysis and Programming, criado por Clare Daly em 27-09-2016.
Criado por
Clare Daly
Visualizações
5
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?