Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help2200


This forum is provided to promote discussion amongst students enrolled in Data Structures and Algorithms (CITS2200).
 
Options:
RSS cloud
Jump to:

Lab 5 - equals(Object o)

1 of 251 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Tue 7th Apr, 10:40am
Summary: confused
Actions: 
        Login-to-reply
I'm confused as to why you need to check if "o" is an instance of BinaryTree. Isn't o the item 
that's stored in the root of BinTree? Why would you need to cast the object variable as 
BinaryTree?

Related articles

Lab 5 - equals(Object o) (all 9) RSS
├─ original   Sat 4th Apr, 1:33pm, Thomas C.
├─ reply 1   Sat 4th Apr, 1:41pm, Thomas C.  O.P.
├─ THIS confused Tue 7th Apr, 10:40am, ANONYMOUS
├─ reply 3   Tue 7th Apr, 10:54am, Thomas C.  O.P.
├─ reply 4   Tue 7th Apr, 11:13am, ANONYMOUS
├─ reply 5   Tue 7th Apr, 12:21pm, Thomas C.  O.P.
├─ reply 6   Thu 9th Apr, 12:52pm, ANONYMOUS
├─ reply 7   Thu 9th Apr, 5:01pm, Thomas C.  O.P.
└─ reply 8   Thu 9th Apr, 8:07pm, ANONYMOUS
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020