#7.1 Java Tutorial | Interface | Why and What?

preview_player
Показать описание

More Learning :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

Saw some people said this is a complex example, but to me it is the first time I understand why we should use interface and abstract class, well done!

weihenglu
Автор

1. Whenever you inherit a abstract class, we use extend keyword
while inheriting a interface class, we use implement keyword
2. Like abstract class we cannot create the object of interface classes,
but we can create reference of them
3. To achieve multiple inheritance we can implement as many interface classes as we want,
but normal or abstract class can be inherited only once.
4.Methods of interface are by default public abstract, so we cannot define their bodies
5.Use abstract if u want to declare methods, otherwise always go for interfaces in the long run😉

anushreevirtualgaming
Автор

Finally I understand what interface do. Thank you. You are a great teacher.

RezaJafari
Автор

this is one of the best java tutorials on the internet, thank you!

monome
Автор

After a long time I understood the concept of interface. Thank you!!!!

nero
Автор

This is the best video on this topic. NO video, no articles, nothing can match this video.
Thankyou.

turhhrn
Автор

I love this man because of below points .
1. Video is short
2. Sticks to the point
3. No unnecessary talk
4. Explaining problems then the solution

kiranforcoding
Автор

Best example for Interface, I've been searching the right video to understand Interfaces, this is the best..!

unaisulhadi
Автор

There is no language to say you sir Thank You

I can't express my feelings sir, thank you very much

mdasadahmed
Автор

I thought this was a great explanation, but a little too fast. No problem, set the speed to .75.

jasoncastaldo
Автор

Thank you so much. I was having trouble to understand the use of assigning super class reference variable to sub class reference variable for months. I left that for later and went ahead to abstract and interface. I'm so happy it got cleared while studying interface In this video. God bless u.

guru_bro
Автор

You pass class object in function arguments, i had no idea we could do that because I'm beginner and also you didn't teach that in previous videos 😅 I got so confused and had to learn it from Google

prathmeshmayekar
Автор

Very good explanation of abstract and interface and the difference of both, and how to use, the purpose is now clear.

sanjaydhande
Автор

could not understand interface unlike the rest of your videos. But thanks all the same sir...

kehinde
Автор

thanks a lot, navin, this concept is now more clear in my mind.

mertoz
Автор

Love your video respect from Pakistan i have an interview tomorrow wish me luck :)

ffx
Автор

I really enjoyed watching this video! I have learned a lot ! I love programming! Thank you so much

thestarinthesky_
Автор

since Java 1.8 we can have default and static methods in interfaces. It is not mandatory to implement them into your class that implements that interface, but only the abstract (declared methods) like before. Default and static methods have been implemented into interfaces due to Stream API.
But a better question Navin: why do we use abstract classes instead of interfaces? Can you provide with an example? I haven't seen anyone using abstract class instead of interface.

anakin
Автор

2:42 Sir why we are creating reference of Writer class ....becoz we know that by creating reference of its child classes(pen and pencil) code is working properly.

satyamraut
Автор

It is really to understand! Thank you sire! I am grateful to you

dhananjaypanage
join shbcf.ru