Quelpr

CAPE Computer Science Unit 2 · 2006 · Paper 1 · Question 6(a)

An Account class contains instance variables 'number' and 'balance', and methods 'withdraw(amount)' and 'deposit(amount)'.

Draw a class diagram representing this Account class.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 6(b)Explain how a Customer object C can send a withdraw message to an associated Account object A.[2 marks]
  2. 6(c)Explain the meaning of inheritance in object-oriented programming.[4 marks]

More practice: the rest of this paper · more Software Engineering Principles and Models questions · all CAPE Computer Science Unit 2 past papers