Guest User

Untitled

a guest
Jun 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class graph {
  2. def getAllPrecursors(n: Node): List[Node] = ...
  3. }
  4.  
  5. class tree extends graph {
  6. def getParent(n: Node) = ...
  7.  
  8. @deprecated("Use getParent rather that getAllPrecursors", "1.0")
  9. override def getAllPrecursors(n: Node) = List(getParent(n))
  10. }
Add Comment
Please, Sign In to add comment