Download presentation
Presentation is loading. Please wait.
1
String Concatenation (operator overloading) 3.0
3
Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling String concatenation 4 + 5 ═ 9 "wind" + "ow" ═ "window" "Result: " + 6 ═ "Result: 6" "# " + price + " cents" ═ "# 500 cents" overloading
4
Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling Quiz System.out.println(5 + 6 + "hello"); System.out.println("hello" + 5 + 6); 11hello hello56
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.