Advertisement
JeffGrigg

Constructor Calls Overridden Method Output

Aug 20th, 2018
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ...\java ... A
  2. hello
  3. in B() constructor
  4. A.showAttributes() : A(height=0.0)
  5. B.showAttributes() : A(weight=150.0)
  6. end of B() constructor
  7. in A() constructor
  8. A.showAttributes() : A(height=6.0)
  9. B.showAttributes() : A(weight=150.0)
  10. end of A() constructor
  11.  
  12. Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement