Advertisement
JackHoughton00

Chapter Eight Written Work Including Critical Thinking.

May 10th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. 3a) A class that contains class member variables demonstrates a has-a-realtionship.
  2. 3b) Object-oriented programming requires that the solution to a task be implemented as a system of objects. In this system, objects communicate with other objects to provide a solution to the task. This approach to creating software is called object oriented development.
  3. 3c) The keyword this can be used to distinguish between a parameter and a member variable.
  4. 3d) Reusability is an important feature of object-oriented programming because it reduces development time and decreases the likelihood of bugs.
  5. 3e) Modular uses components that are separately written and maintained.
  6. 3f) When information is passed from one object to another, the object is said to be passing a message.
  7.  
  8. 5a) Roo
  9. 5b) x
  10. 5c) getX()
  11. 5d) setX(int z )
  12. 5e) factor()
  13. 5f) Roo
  14. 5g) 4
  15.  
  16. 6. A class is a data type that defines variables for the state of an object and methods for an object’s behaviour. An object is an instance of a class. An object stores data and can perform actions and provide communication.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement