|NO.Z.00024|——————————|BigDataEnd|——|Java&方法封裝.V06|---------------------------------------------|Java.v06|過載的實際意義|
阿新 • • 發佈:2022-04-03
[BigDataJava:Java&方法封裝.V06] [BigDataJava.面向物件] [|章節二|方法和封裝|過載的實際意義|]
一、過載的實際意義
### --- 過載的實際意義 ~~~ ——> 方法過載的實際意義在於呼叫者只需要記住一個方法名就可以呼叫各種不同的版本, ~~~ ——> 來實現各種不同的功能。 ~~~ ——> 如:java.io.PrintStream類中的println方法。
===============================END===============================
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor
來自為知筆記(Wiz)