Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. encapsulation
  2. inheritence
  3. polymorphism
  4. aggregation
  5. q 4-7
  6.  
  7. inheritence: allows you to derive a new class from an existing one where the new class automatically inherits the dats members and the member function of the existing class
  8.  
  9. polymorphism: a member function that will produce different results depending on the type of object which
  10.  
  11. abstract data type: a description of the visible behaviour of a data type, hiding the details of how its implemented
  12.  
  13. question 9: most convenient way of representing tic tac toe in terms of data structure -
  14.  
  15. 10: what one of a list of data structures is mot likely to be a static data structure
  16.  
  17. 11: identify the type of queue: (double ended queue)
  18.  
  19. 12: identify this: a stack
  20.  
  21. 13: identify this: double linked
  22.  
  23. 14: identify a type of sort of an illustration (bubble and merge) (lecture 5)
  24.  
  25. 15: same as question 14
  26.  
  27. 16: identify this (array)
  28.  
  29. 17: identify this (tree)
  30.  
  31. 18: two fundamental operations of a stack - push and pop
  32.  
  33. 19: question about sorting algorithm efficiency (bubble least efficient)
  34.  
  35. 20: ??
  36.  
  37. 21: a game can have a number of chars/players who have certain demographics such as name, sex, age and height. in the game the character may carry one or more inventory items which are classified into weapons, health and magical items. the game has a number of enemies in it which are of particular types and can be either: a vampire, gargoyle, or werewolf with different food sources
  38. 9 marks awarded for class identification
  39. 2 marks for inheritence identification
  40. 2 marks are awarded for correct cardinality
  41. 5 marks for the attributes, appropriate types and scope
  42. 2 marks for one correct set of accessor and mutator functions
  43.  
  44. obfuscation/subterfuge
  45.  
  46. 22: identification of two correct type of inheritence
  47. weapons( super class)
  48. inventory(sub class)
  49. magic(sub class)
  50. weapons(sub class)
  51.  
  52. 23: identifying cardinality (2 marks)
  53.  
  54. character(*..*)_____(1..*) inventory item
  55.  
  56. an inventory item can only have one character, but one character can have many inventory items
  57.  
  58. 24: identifying attribute types and scope
  59.  
  60. -name: String
  61. -sex: char
  62. -age: integer
  63. -height: float
  64.  
  65. 25: identifying a correct set of mutator and accessor functions:
  66.  
  67. +setName(newName: String): void
  68. +getName(): String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement