Комментарии:
Please SUBSCRIBE! More programming videos coming soon! ✌️
ОтветитьHi, I'm taking a java course at my University. This video has cleared things up quite a bit. I just have one question though, I am having trouble understanding why you would need to cast the object into a (Student)? What is the reason for this?
Ответитьgreat explanation and easy to follow.
ОтветитьDanke
ANGRIFF
Thank you, I wish professors explained it this simple.
Ответитьhow to find earlier class link
ОтветитьI thought we used to equals method just because we compare the content instead of the reference.
ОтветитьThank yuo professoer
ОтветитьThanks a lot. Very helpful
ОтветитьIt was helpful. thank you sir.
Ответитьааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааа
ОтветитьThanks!!!!!
Ответитьsucks
ОтветитьThis was super helpful for me. I was getting confused on how to implement an Override equals method from scratch and this just cleared up all of my questions. Thank you!
ОтветитьNin thika
ОтветитьJust to make sure I'm not missing something. Since the StudentID field is private, don't you need a public getter to get it from the argument object instead of dotting it? However it works for you.
EDIT: Nevermind, it's because they share the same class. I was thinking that encapsulation worked cross object too but no.
your implementation is wrong if we pass a value which is not an instance of Student we get an error, same if we pass null.
ОтветитьI have a doubt here, On line 13 in student class the condition should be like this right ?? --- > (!this.getname().equals(s.getname())) because the calling Object is b.
ОтветитьThese videos are amazing!!! Thank you so much!
Ответитьthank you so match (يسعدلي الشارب)
Ответитьsuper helpful! thanks
ОтветитьLOve your demonstration
ОтветитьThanks alot, I was struggling to understans it.
Ответить