Skip to content

Commit

Permalink
Update demo2.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu authored Oct 25, 2021
1 parent ce6e2e5 commit 7a8c47b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/ScalaAdvance/ViewBounds1/demo2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class Person(val name:String, val age:Int) extends Ordered[Person]{
*
* 2) compareTo in getter2 is T object's method
*
* 3) java.lang.Comparable ref : https://www.youtube.com/watch?v=n3xOIVricqQ&list=PLmOn9nNkQxJH0qBIrtV6otI0Ep4o2q67A&index=489
* 3) java ref
* - java.lang.Comparable ref : https://www.youtube.com/watch?v=n3xOIVricqQ&list=PLmOn9nNkQxJH0qBIrtV6otI0Ep4o2q67A&index=489
* - java.lang.Comparator ref : https://www.youtube.com/watch?v=PArFjm04xkg&list=PLmOn9nNkQxJH0qBIrtV6otI0Ep4o2q67A&index=491
*
*/
class CompareComm2[T <% Ordered[T]](obj1:T, obj2:T){

Expand Down

0 comments on commit 7a8c47b

Please sign in to comment.