Advertisement
RazorBlade57

hw

Feb 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. Lab 3 - Triangle
  2. Use Geomertric object from files for lab#3
  3.  
  4. #13.9 - Circle
  5. add comparable
  6. override equals method
  7. similar to rectangle
  8. add a main to test
  9.  
  10.  
  11. Test---------------------------------------------------
  12.  
  13. Review Abstract & interfaces
  14. revisit employee, rectangle
  15. Review for next week's test
  16.  
  17.  
  18. Review--------------------------------------------------
  19.  
  20. Overloads- Same name method but different parameters.
  21. Override- Same name, same parameters
  22. Inheritance - different class
  23.  
  24. CONSTRUCTOR- Same name as class, invoked with new operator, no return type (not even void)
  25.  
  26. METHOD- Any legal name, invoke with a method call, any return type
  27.  
  28.  
  29. Wrappers - Provide more functionality
  30. Double - double
  31. Character - char
  32.  
  33.  
  34. Static- Shared by whole class
  35. Static method- invoke without creating an instance
  36. Final - Constant
  37. Final Method- Child cannot override parent method
  38. Final Class - Cannot extend class (Math)
  39.  
  40. Child can do anything the parent does plus what the child adds
  41.  
  42. Why instance of?
  43. To test for a certain type of object
  44.  
  45. Super - to go up a generation
  46. private - within the class
  47. protected - within the family
  48. public - everyone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement