摘要:
基础知识 基础知识 1 将trait作为接口使用此时Trait就与Java中的接口非常类似,不过注意,在Scala中无论继承还是trait,统一都是extends关键字。Scala跟Java 8前一样不支持对类进行多继承,但是支持多重继承trait,使用with关键字即可 1 将trait作为接口使 阅读全文
posted @ 2017-12-13 16:52
小丑进场
阅读(571)
评论(2)
推荐(1)
摘要:
题目描述Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeat 阅读全文
posted @ 2017-12-13 11:09
小丑进场
阅读(471)
评论(0)
推荐(0)

浙公网安备 33010602011771号