Object Oriented Programming using C#

(backadmin) #1
Object Oriented Programming using C#
The Unified Modelling Language (UML)

Operations also have a precise syntax and should be shown as:
visibility name (par1 : type1, par2 : type2): returntype

where each parameter is shown (in parenthesis) and then the return type is specified.

An example would be
+ AddName (newName : String) : boolean

This denotes a public method ‘AddName’ which takes one parameter ‘newName’ of type String and returns a boolean value.

Activity 2

Draw a diagram to represent a class called ‘BankAccount’ with a private attribute balance (this being a single integer) and a
public method DepositMoney() which takes an integer parameter, ‘deposit’ and returns a boolean value. Fully specify all of
this information on a UML class diagram.

Stand out from the crowd
Designed for graduates with less than one year of full-time postgraduate work
experience, London Business School’s Masters in Management will expand your
thinking and provide you with the foundations for a successful career in business.
The programme is developed in consultation with recruiters to provide you with
the key skills that top employers demand. Through 11 months of full-time study,
you will gain the business knowledge and capabilities to increase your career
choices and stand out from the crowd.
Applications are now open for entry in September 2011.
For more information visit http://www.london.edu/mim/
email [email protected] or call +44 (0)20 7000 7573

Masters in Management

London Business School
Regent’s ParkLondon NW1 4SA
United KingdomTel +44 (0)20 7000 7573
Email [email protected]/mim/

Fast-track


your career


Please click the advert

Free download pdf