Class Activities 25 /11/2012 . Please submit before 5:00 pm in hard copy form.
Name :______________________
Matric:______________________
Course:_____________________
Please refer to Chapter 8 Objects and Classes (slide 4 to 7) + Google to find the answer for the following questions.
QUESTION 1 (TRUE / FALSE)
i) Object-oriented programming (OOP) involves programming using objects. (T/ F)
ii)An object has both a state(also called properties or data field ) and behavior(also called methods). (T/ F)
QUESTION 2 (SHORT ANSWER)
Consider the following class and answer the questions below:-
i) What is the name of the above class?
ii)List the state of the above class.
iii) List the behavior of the above class.
iv) What is Constructor
No comments:
Post a Comment