Abstract Classes vs Interfaces: Interview Question with a Twist!

preview_player
Показать описание
The Main difference between Abstract Classes and Interfaces.

I often ask this at the beginning of an interview to establish where a candidate is in terms of computer science knowledge since this is a very simple, foundational question. Here's how I like to think of an answer.
Рекомендации по теме
Комментарии
Автор

I was looking for a while for a direct and clear explanation, and yours really helped, thanks!

luisdwq
Автор

awesome video, sometimes something like interfaces vs abstract classes can seem so simple, but its still immensely helpful to hear it spoken out loud and detailed

coryandreasen
Автор

Suggestion the background music is a bit distracting.

jayrao
Автор

Love the vid! Thank you for helping the next gen of devs! We appreciate it a lot!

riftsassassin
Автор

Damn, bro, that’s so fire. I’ve finally found a video about differences between these two buddies. Because everyone who made a blog or a video i watched or googled, they are just telling the difference between code realization, that’s all
Thank you, I highly appreciate your video!

marat.
Автор

This was very profound way to explain the difference and I found it very helpful and easy to understand

vincentndivhuwo
Автор

Gabriel, can you make a video about difference between abstraction and encapsulation? I think this is so confusing topic for beginners

thegaribovv
Автор

the most logical explanation to the concept around the purpose of interface and Abstract class.

shivamkashyap
Автор

Incredible explanation. Subbed right away.

jetzemeilink
Автор

an excellent thought. I was searching throughout blog, but no one tells why is it, and what is the purpose. Thanks a lot Gabriel

akhilraj-lbxj
Автор

Thank you for this video. Although if you could please add some examples to explain this concept or difference between the two, then that would really help.

aakashsharma
Автор

why ur videos are so rare hope you add more thanks man

salahayman
Автор

Can you recommend some books to learn OOP ?

khizerrehan
Автор

Nice video, I watched about 20+ videos and they always speaks same. Bu you explained the twist

thegaribovv
Автор

Thanks, I gues it is the best answer this this question

mahmudsharipov
Автор

Could have been better, if difference was shown in screen clearly

udayadi
Автор

Note for myself
Summary:-
Abstract Class: To generalize behavior.
Interfadce: To standarize. It is a contract that the object should be having this much things.

Although we can now have methods in both, purpose of the methods in both case is different. Interface methods were interoduced to not break existing implementations.
Also,
All variables in interface are public+static+final while in abstract class thats not the case. So all members of implemented/extended class will have same/different copies in interface/class respectively.


There isnt other difference I think, still feel free to comment and discuss

prerakchoksi
Автор

Fortunately we use that kind of info only on the interview process.

RobsonCassianoSoftware
Автор

The video is good but it would be better and clearlly if u putted a code example

sayedqandel
Автор

If someone asked abstract class vs interface, I'd say these are completely unrelated concepts.

izvarzone