Abstract Class vs Interface (Real Application Use) in C# .NET

  Рет қаралды 79,259

Interview Happy

Interview Happy

Күн бұрын

Пікірлер: 48
@marquismccann4068
@marquismccann4068 Жыл бұрын
This is the one abstract class video that actually makes sense to me thank you
@zeenatfirdoshquadri1699
@zeenatfirdoshquadri1699 Жыл бұрын
months of confusion minutes of solution... thanku its very lucid
@interviewhappy
@interviewhappy Жыл бұрын
welcome Zeenat. All the best for your career.
@voice-over4089
@voice-over4089 4 ай бұрын
Many years and 100's of videos trying to undertsand this. Thank you.
@interviewhappy
@interviewhappy 4 ай бұрын
You're very welcome
@DrEgypt-he4sw
@DrEgypt-he4sw 8 ай бұрын
"Thank you for the video and all your hard work! I noticed at 6:01 you said, 'Normally we prefer Interfaces because it gives us the flexibility to modify the behavior at a later stage.' I think you might have meant to say abstract classes. Although interfaces can be changed later, there's a problem because every time you add a new method to the interface, all the classes that use this interface have to be updated to include this new method. That can cause a lot of extra work.
@aritrachakraborty6658
@aritrachakraborty6658 6 ай бұрын
Abstract class can contain class fields but interface cannot contain class fields
@naveenbaghel5327
@naveenbaghel5327 Жыл бұрын
I have no word for your knowledge, awesome happy rawat ji
@interviewhappy
@interviewhappy Жыл бұрын
Thanks a lot Naveen
@mounikanimma189
@mounikanimma189 Жыл бұрын
Super anna... excellent keep going do all videos anna we will support you
@armaankhan6624
@armaankhan6624 Жыл бұрын
exactly what people look for 👍🏼
@interviewhappy
@interviewhappy Жыл бұрын
Thanks Armaan. May your achiever all your career "armans".
@akshaydaundkar1417
@akshaydaundkar1417 Жыл бұрын
Excellent 👌 After watching lots of difference, now I get clear idea 💡 about it... Thank you 👍
@divyapriya4324
@divyapriya4324 Жыл бұрын
Abstract class : It is declared as abstract keyword. It has both abstract and not abstract method. It has both declaration and definition. Default scope of member is private. Multiple inherence is not supported. It can have constructor Interface: It is declared as interface keyword. It has only abstract method. It has only declaration. Default scope of member is public It supports Multiple inherence. It does not have constructor.
@kumaravelg2348
@kumaravelg2348 10 ай бұрын
Use of inheritance is reuse code but when we use interface for multiple inheritance we need to write method body in each derived class. Pls clarify my doubt
@ManojKumarThatipiGari
@ManojKumarThatipiGari 6 ай бұрын
very nice explanation, Thanks to you !!
@superkfc5410
@superkfc5410 Жыл бұрын
Great video! Thank you for the splendid explanation!
@interviewhappy
@interviewhappy Жыл бұрын
Glad it was helpful! @super
@nityanandbhangale2409
@nityanandbhangale2409 7 ай бұрын
Sir please video in hindi on why we need to create abstract class TCS interview question.
@atulkrjha
@atulkrjha Жыл бұрын
But in your example you use public access modifier in interfaces. I think we cannot use public access modifiers in interfaces.
@interviewhappy
@interviewhappy Жыл бұрын
yes you can like this, public interface IExampleInterface
@grijanantony6248
@grijanantony6248 Жыл бұрын
amazing bro keep rocking
@interviewhappy
@interviewhappy Жыл бұрын
Thanks @grijan
@faizanansari7584
@faizanansari7584 Жыл бұрын
Why have you hidden 19 videos?
@PraveenKumar-um2tx
@PraveenKumar-um2tx Жыл бұрын
Sir First point clear nhi huva.. Ki new feature m hum method body interface and abstract class m use kar sakte h.. Phir ye man ley ki new feature k ane pr first difference jo aap ne btya h vo exclude hai?
@paulh1720
@paulh1720 Жыл бұрын
thank you for excellent content - exactly what people needed here
@iliashterev38
@iliashterev38 Жыл бұрын
Hello and Thank you for this tutorial. I think methods in interface can not have accessors, like public, etc.
@JrJd-vr1hm
@JrJd-vr1hm 3 ай бұрын
It is just about regular example, not a real application ???
@jemisArt
@jemisArt 3 ай бұрын
Yeah In real application we use interface.
@prasadpatil9997
@prasadpatil9997 11 ай бұрын
Thank you for clear my query
@interviewhappy
@interviewhappy 11 ай бұрын
Always welcome
@shahrukhchaus0000
@shahrukhchaus0000 Жыл бұрын
Exactly what for I was looking 👍 thanks
@srikant67
@srikant67 Жыл бұрын
Awesome stuff
@Gauravkumar-jm4ve
@Gauravkumar-jm4ve Жыл бұрын
very good
@interviewhappy
@interviewhappy Жыл бұрын
Thanks Gaurav and all the best for your career
@s.devaraj2096
@s.devaraj2096 3 ай бұрын
Design patterern upload video
@shubhamshinde6818
@shubhamshinde6818 8 ай бұрын
4 year full stack .net developer ko kitna package hona chahiye
@amanshukla6500
@amanshukla6500 Жыл бұрын
but the interface now can have constructor
@VirendraKumar-dg5qh
@VirendraKumar-dg5qh 11 ай бұрын
if abstract class contain constructor but abstract class can not be initiated. then use this constructor?
@PalashBansal
@PalashBansal 11 ай бұрын
derived class instantiation calls it first before calling derived's own constructor. Opposite sequence for destructor.
@niteshgupta5901
@niteshgupta5901 Жыл бұрын
Thank you so much 🙏🏽🙏🏽🎉🎉
@interviewhappy
@interviewhappy Жыл бұрын
You are so welcome my friend @niteshgupta5901
@AdityaKumar-hb9fi
@AdityaKumar-hb9fi 4 ай бұрын
Now interface also contain implementation. Not worth to watch.
@026maheshkumars7
@026maheshkumars7 Жыл бұрын
Thankyou so much
@Funfun96_2
@Funfun96_2 10 ай бұрын
Thank you
@interviewhappy
@interviewhappy 10 ай бұрын
You're welcome
@cormackeenan8175
@cormackeenan8175 Жыл бұрын
Thank you for your video, I found it very clear in explanation, but without wishing to be rude, your pronunciation of “methods” sounds like “matters” and I had to turn on captions to understand what you were saying 🤷‍♂️
@interviewhappy
@interviewhappy Жыл бұрын
@Cormac, well noted, will try to be more clear with the sound :)
Abstract Class - Interfaces Scenario based questions in C# .NET
6:27
Interview Happy
Рет қаралды 19 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Abstract Classes vs Interfaces (Java)
9:43
The Code Hard Truth
Рет қаралды 210 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 219 М.
Delegates & Events in C# .NET
6:04
Interview Happy
Рет қаралды 62 М.
Interfaces vs Abstract Classes
14:43
Raw Coding
Рет қаралды 17 М.
Awesome new features in C# 13 for .NET 9!
10:50
Ed Andersen
Рет қаралды 13 М.
Explain Generics in C#? When and why to use them in real applications?
5:57
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
Forget Controllers and Minimal APIs in .NET!
14:07
Nick Chapsas
Рет қаралды 79 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН