Ics 2104 Object Oriented Programming I
Ics 2104 Object Oriented Programming I
a) Define the mandatory statement for JAVA syntax to rum without errors
(3 marks)
c) JAVA has 4 access modifies, briefly describe the scope of each modifier
(4 marks)
i) Class (3 marks)
ii) Inheritance (3 marks)
iii) Object (3 marks)
iv) Eucapsulation (3 marks)
i) if statement (5 marks)
ii) switch statement (5 marks)
i) math.sqrt() (5 marks)
ii) math.ceil() (5 marks)
QUESTION FIVE (20 MARKS)
i) isAtEdgcC) (3 marks)
ii) isTouching C) (3 marks)
iii) turn () (3 marks)
iv) remove Touching () (3 marks)
v) getRandomNumber() (3 marks)