willieshi232

Untitled

Jan 28th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. 6.
  2. UndergraduateStudent can call the setAge method but cannot directly access the name or age fields from Student.
  3. 8.
  4. public void setAge(int age)
  5. {
  6. super.setAge(age);
  7. year++;
  8. }
  9. 10.
  10. vroomvroom
  11. truck 1
  12. car 1
Advertisement
Add Comment
Please, Sign In to add comment