Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 2

Module 6-Task 1:

Look around you, objects are everywhere! Barely any noun can be reasonably
represented as a software object in terms of attributes (e.g. name, size etc.)
and behaviours (e.g. calculate, move, fly, etc.). Identify 3 objects where you are
(or imagine yourself somewhere else), name the objects and state their likely
attributes and behaviours.

Object Property 1 2 3
1) Attribute      
Behaviour      
2) Attribute      
Behaviour      
3) Attribute      
Behaviour      
Module 6-Task 2:
1) Briefly explain the idea of class creation in line with making a datatype.
2) Why do we characteristically make the data members private:
3) Draw the UML class diagram for a named class having two methods in which
one is public and the other is void
4) State the implications of the following symbols in a UML class diagram:
a) minus sign (-)
b) hash sign (#)
5) The set method could also be used to validate data before assigning it to the
data member. Write a set method that validates user’s input for a clock
object such that “26:50:12” would be alarmed invalid for hh:mm:ss format
(hours can’t be up to 26).

You might also like