tags: Java Scala 教學 物件導向 Constructor Singleton
除了 Functional Programming 的編程典範外,Scala 也支援了物件導向的功能,其語法與 Java 類似,但修正並簡化了 Java 中的一些較為繁雜的地方。