OOPS Interview Questions and Answers | Object Oriented Programming Interview Questions C#

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 434

  • @questpondvideos
    @questpondvideos  2 года назад +21

    30 Important C# Interview Questions : ruclips.net/video/BKynEBPqiIM/видео.html
    Software Architecture Interview Questions : ruclips.net/video/AtTgcbLOqMM/видео.html
    20+ Garbage Collection (GC) Interview Questions : ruclips.net/video/RgfuVp2lXIA/видео.html
    20+ SQL Server Interview Questions : ruclips.net/video/SEdAF8mSKS4/видео.html
    10+ Power BI Interview Questions : ruclips.net/video/Cozc9WNBRt4/видео.html
    20 MSBI Interview Questions : ruclips.net/video/Nw_sHEKnOUE/видео.html
    SQL Server Joins : ruclips.net/video/KTvYHEntvn8/видео.html
    SQL Step by Step - ruclips.net/video/uGlfP9o7kmY/видео.html
    Angular Step by Step Tutorial for Beginners : ruclips.net/video/-9VcW7MBDs8/видео.html
    25 Angular Interview Questions : ruclips.net/video/-jeoyDJDsSM/видео.html
    25 Important ASP.NET Interview Questions : ruclips.net/video/pXmMdmJUC0g/видео.html
    35 Important JavaScript Interview Questions : ruclips.net/video/Zb4dPi7CANU/видео.html
    20 MySQL Interview Questions : ruclips.net/video/9hfjC-BpY20/видео.html
    5 MSBI Interview Questions : ruclips.net/video/5E815aXAwYQ/видео.html
    20 PHP Interview Questions : ruclips.net/video/1bpNSynUrl8/видео.html

    • @digital.voyager
      @digital.voyager 8 месяцев назад +1

      C# 8.0 supports interface implementation methods, including default interface implementations, which allow you to add new members to a public interface without breaking existing implementers.
      I am little bit confused that why this change was made. @questpondvideos Could you please explain?

  • @anshulasri152
    @anshulasri152 11 месяцев назад +23

    Answer to a question asked at last "Difference between abstract class with all abstract methods and and Interface" is that although both are technically similar but at the time of multiple inheritence abstract class fails, for multiple inheritance we have to implement Interface only.
    Also I would like to thank you for the video that explains concepts so easily with code examples!

    • @adityapathak9999
      @adityapathak9999 6 месяцев назад

      What is the meaning of "abstract class fails"

    • @SHIVAML987
      @SHIVAML987 6 месяцев назад

      @@adityapathak9999 That means we will have a compile time error. So, technically if we need some implemented + some abstract method then only go ahead with abstract class, otherwise, interfaces.

    • @hassanadil3535
      @hassanadil3535 2 месяца назад

      That's true, but can't you go with multi level inheritance among classes and achieve the same.

  • @nikhilkohirlyakaji
    @nikhilkohirlyakaji 2 года назад +37

    This video has cleared my biggest confusion related to Encapsulation vs abstraction which I have been facing for over 5 years now. Thanks

  • @dominiquez5643
    @dominiquez5643 Год назад +27

    Master class! Wow 20+ years developing and at last somebody explain things in a simple concrete manner! This is an amazing run down on OOP techniques properly exlained to be used and to answer questions from anybody in IT! Love this video!

    • @Anuj_sk
      @Anuj_sk 5 месяцев назад

      How can we inherit the properties of base class from derived class without declaring the object of base class in main() .
      Can you explain the backend architecture of inheritance
      Simple and very tough interview questions of Microsoft for 40 lakh per annum question....
      Pata sabko hai pura gyan koi kabhi kisi ko nhi deta....
      Bataiye

  • @AashuKun
    @AashuKun 3 месяца назад +2

    You explained the OOP concepts so clearly in just one hour, something my professor couldn't make me understand in four years!
    Thank you so much!

  • @jaym4358
    @jaym4358 2 года назад +147

    Wow. I did not even notice the 1 hour pass by. This is the best interview prep and the best video that explains OOP concepts by far! Thank you so much.

    • @jaym4358
      @jaym4358 2 года назад +13

      I had 3 technical interviews today. One of them had very heavy questions on OOP concepts. The interviewer loved my answer about what an interface is, and even admitted that he had a hard time grasping the concept earlier in his career. I passed that interview thanks to this video. I am moving on to the third and final round.

    • @Father_Of_Sudeera_Muthusinghe
      @Father_Of_Sudeera_Muthusinghe 2 года назад +3

      @@jaym4358 Congratulations!!!

    • @pranav288
      @pranav288 2 года назад +1

      @@jaym4358 How was the final round ?

  • @svb651
    @svb651 2 месяца назад +9

    23:54 The Answer can be yes I think because compile-time polymorphism is achieved through method overloading and operator overloading, which do not require inheritance

  • @vinothrajendran858
    @vinothrajendran858 2 года назад +24

    Sir, I have suggested your videos to nearly 20 people(my friends and colleagues) who were all trying for their next job and they found your videos really helpful. we are forever grateful. Thank you so much :) . And I will keep spreading your channel videos.

  • @hemantvitthal3732
    @hemantvitthal3732 2 года назад +21

    Aftter many year (10 years) search on google or youtube, I found best programming concept, What I exactly needed. Thank you @Questpond.

  • @sridhargana155
    @sridhargana155 2 года назад +81

    An abstract class allows you to create functionality that subclasses can implement or override. An interface only allows you to define functionality, not implement it. And whereas a class can extend only one abstract class, it can take advantage of multiple interfaces.

    • @phelipepalte
      @phelipepalte Год назад +10

      Another difference between abstract class and interface is you can't do a dependency injection with abstract class..

    • @jestem-kses
      @jestem-kses Год назад +5

      Latest version of c# allow interfaces to provide default implementation

    • @bosegeorge1425
      @bosegeorge1425 11 месяцев назад

      ​@@phelipepalte actually you can.

  • @sunrise7442
    @sunrise7442 2 года назад +20

    Best video's ive ever came across that explains concepts so easy. I followed the questions and enrolled on Udemy for the extra questions not covered here, and Cleared my first interview after 15min post interviewing I was called by HR that I got the Job🎉🎉 kudos to you Sir.

  • @seijumimurasakibara5516
    @seijumimurasakibara5516 9 месяцев назад +2

    your dry wit coupled with your easy to understand explanations makes this video enjoyable to watch! thank you for this, i've finally understood the difference between abstraction and encapsulation and learned couple more things as well. Please keep up the good work!

  • @Father_Of_Sudeera_Muthusinghe
    @Father_Of_Sudeera_Muthusinghe 2 года назад +24

    One thing to notice... When we are talking about method "overriding vs overloading", we should emphasize that method overriding is a runtime polymorphism and method overloading is a compile-time polymorphism. I guess it will be an expected answer in an interview. Finally, thanks for this interview question video. It helps me a lot to gain self-confidence before going to interviews.

    • @shreyaspatil24
      @shreyaspatil24 2 года назад +2

      Yes. Also we should talk about method signatures.

    • @priyeshdubey40
      @priyeshdubey40 2 года назад +1

      but here is the catch he also told that without inheritance polymorphism will not work but you see overloading case which is example of compile time polymorphism is not following the inheritance thing ..I think he confused little bit.😉

    • @Father_Of_Sudeera_Muthusinghe
      @Father_Of_Sudeera_Muthusinghe 2 года назад

      @@priyeshdubey40 yup. U r right. In the comment section he has accepted the mistake. Anyway a great video.

    • @gazalkaintura2605
      @gazalkaintura2605 Год назад

      @@priyeshdubey40 exactly I thought the same thing

  • @lavanyaguniganti1444
    @lavanyaguniganti1444 2 года назад +13

    Sir, I have cleared my interview in reputed MNC just by going through your interview videos. thank you so much

    • @rangababupolavarapu517
      @rangababupolavarapu517 2 года назад

      Do you have more interview questions

    • @questpondvideos
      @questpondvideos  2 года назад

      @@rangababupolavarapu517 you can visit www.questpond.com/interview-questions---answers-tutorial/cid63 for interview Q&A videos

  • @grc04
    @grc04 28 дней назад

    hands down the greatest object oriented programming explainer on YT.

  • @vedantkulkarni5437
    @vedantkulkarni5437 Год назад +1

    One suggestion to viewers....don't skip this video just because you are using different language other than cs....it is one of the best video for oop with proper explanation

  • @abhishek.eswarappa
    @abhishek.eswarappa Месяц назад

    Having attended loads of interviews as a c# developer, i can conclude this is the best OOPS tutorial in an interview perspective. Pure GEM.

    • @questpondvideos
      @questpondvideos  Месяц назад

      Really grateful for your feedback , thank you :)

  • @lekhrajawasthi8272
    @lekhrajawasthi8272 Год назад +1

    Thank you shiv sir for this easiest explanation. Answer to that last question is that : Abstract can't help in multiple inheritance but the Interface can do the multiple inheritance. So in case of any modification to the requirement one can easily modify interface by implementing multiple inheritance.

  • @mariahaamir171
    @mariahaamir171 2 года назад +1

    Its really underrated channel; I my opinion its by far the best. I am following Questpond since 7 years

  • @omarcollazo5011
    @omarcollazo5011 11 месяцев назад +1

    This is the best explanation of abstraction vs encapsulation that I've ever heard. Thank you, sir!

  • @stepbackandthink
    @stepbackandthink Год назад +4

    You have explained this far better than actual training videos.

  • @hirajabeen9681
    @hirajabeen9681 8 месяцев назад +1

    I am here to recall my concepts and I have seen lots of material pdfs , YT vids and consult with books as well but this video I must say is so accurate and totally concise and delivers exactly what anyone need ! Much Appreciation for you ! Hatts off to your Efforts ! More Power To You ! @Questpond

  • @tcv85
    @tcv85 2 года назад +12

    Thank you! I’m so glad you’re showing real time coding examples while explaining each necessary details. I’m learning a lot from this video. I can’t wait to watch your other videos! Thank you!!!

  • @panic_seller
    @panic_seller Год назад +1

    Very good video, never paid attention for 1 hour in a RUclips video

  • @automationselenium1331
    @automationselenium1331 2 года назад +1

    By far the best video on C# interview I have seen on youtube, how one hour passed I have no idea, your way of teaching is amazing and I can watch your videos for hours...thank you and god bless you.

  • @raoadnan442
    @raoadnan442 2 года назад +3

    Awesome way of describing. I have been searching OOP interview question answers but unable to find a great teacher like you. Hurrah.. now I have. Love from Pakistan. Keep doing this great job.

  • @PabloMartinezfr
    @PabloMartinezfr 2 года назад +1

    Best OOPS Interview Questions and Answers on RUclips!

  • @gopavarapuguruprasad
    @gopavarapuguruprasad Год назад +1

    One of best video about oops concepts interview question and answers I come across. Please keep up good work sir👍.

  • @suprabhat7582
    @suprabhat7582 5 месяцев назад

    I have cleared interview by referring your videos. Thank you.

  • @hassanadil3535
    @hassanadil3535 2 месяца назад +1

    Hi sir, referring to question # 21, you can actually write logic in an interface because C# 8 introduced 'Default Interface Methods' where you can write default logic for interface methods.

  • @naseerhussain5272
    @naseerhussain5272 2 года назад +1

    This is the Best Explanation one could have asked for

  • @binayashrestha4131
    @binayashrestha4131 2 года назад +1

    Best OOP explanation video in RUclips !

  • @kingfisher3791
    @kingfisher3791 2 года назад +1

    What most anyone can say about this video, it is really awesome. After seeing this i come to know what the purpose of oops concepts

  • @natnaelhabtamu2799
    @natnaelhabtamu2799 2 года назад +3

    THIS is GOLD, you can easily follow up with any OOP language. thanks sir
    🤗

  • @AzeemRaavi
    @AzeemRaavi 2 года назад +1

    Awesome way to answers the OOP questions. Love from Pakistan 🇵🇰

  • @jankichalise904
    @jankichalise904 9 месяцев назад +1

    I always knew the theory part but when it comes to interview every interviewer was like what's the practical implementation of it and i really found the answer nowhere. thankyou so much for taking efforts and making an awesome video

  • @govindgupta1874
    @govindgupta1874 2 года назад

    Thanks

  • @ShankarV-te7le
    @ShankarV-te7le Год назад +1

    Simply superb explanation...thank you @Questpond.

  • @fernandod3510
    @fernandod3510 2 года назад +1

    You have a real talent for education and clear explanation. Thank you for all you have given.

  • @rajeshmacpant
    @rajeshmacpant 2 года назад +2

    Excellent. This is such an easy refresher or explanation of OOPS concepts.

  • @EdisonSeas
    @EdisonSeas Год назад +1

    Great video, for understanding OOP concepts not just for C# but also any other language even if they don't support them, (like JavaScript).
    Pura vida!

  • @TyagiNushrat
    @TyagiNushrat 3 месяца назад

    It helps me a lot to get refresh my knowledge after so many work experience, Thank you so much.🙂

  • @nalinikantadash8669
    @nalinikantadash8669 Год назад +2

    An Interface contains methods which are by default abstract.But as an abstract class is a partially defined parent class so there is a possibility that it can contain both abstract methods as well as non abstract methods.This is the basic difference between an interface and an abstract class.

  • @SSSALLJOBSPORTAL
    @SSSALLJOBSPORTAL 10 месяцев назад +1

    Wah!! What an explanation boss!! Crystal clear explanation... 🙌 really thank you🔥

  • @udithaliyanage6375
    @udithaliyanage6375 Месяц назад

    23:59 Compile time polymorphism can be achieved without inheritance. As an example Method overloading and operator overloading.

  • @unknownfacts1197
    @unknownfacts1197 2 года назад +9

    Multiple inheritance is what makes interface and abstract class differ from each other when they become technically similar

    • @questpondvideos
      @questpondvideos  2 года назад +5

      So right. Thats the only BIG technical difference

    • @unknownfacts1197
      @unknownfacts1197 2 года назад

      @@questpondvideos Thank you.. Your explanations are so good sir 👍

  • @10yearsago84
    @10yearsago84 6 месяцев назад

    Really a great set of questions. Thoroughly covered all the topics. Thank you sir :)

  • @gametechtutorial4670
    @gametechtutorial4670 2 года назад +1

    Best video so far. Clear, right at the point. Im getting the point right away. Thank you for sharing the knowledge sir.😃🙇‍♂

  • @vaibhavraj581
    @vaibhavraj581 2 года назад +2

    Very intuitive and clear explanation of the concepts , thanks a lot for sharing. Looking forward to learn more from your videos.

  • @benedictmabanga5736
    @benedictmabanga5736 2 года назад +2

    Best explanations! Thank you for this🙏🙌

  • @husnainmazhar6739
    @husnainmazhar6739 10 месяцев назад +1

    amazing video,, cleared all the concepts.. Thanks

  • @sadakagaja
    @sadakagaja 2 года назад +2

    Awesome sir
    It helping me to learn C#❤️

  • @shubhampanwar7647
    @shubhampanwar7647 2 года назад +1

    very very detailed and good quality video.
    i watched till question 27

  • @ankursahani8564
    @ankursahani8564 2 года назад +1

    Sir your explanation is very systematic.
    Sir please upload Question and answer for top 50 C programming coding Question for fresher interview.

  • @mohamedmusthafa1057
    @mohamedmusthafa1057 Год назад +1

    I find this Channel You saved My lot of time thanks ❤

  • @yogeshkumar_29
    @yogeshkumar_29 Год назад +1

    You are Best Sir !! Really very helpful

  • @shivangisingh9920
    @shivangisingh9920 2 года назад +2

    You are awesome... Helped me a lot in the interview.

  • @izmar47
    @izmar47 Год назад +1

    Thank you for the lesson. I can't tell you how much this helped. I appreciate your effort. Liked and Subscribed!

  • @saravanansangeetha1206
    @saravanansangeetha1206 2 года назад +3

    Very very useful video for us, appreciate your efforts

  • @akshaysoren5400
    @akshaysoren5400 Год назад +1

    Thank you so much sir. i really like the way you explain.

  • @shubhamgadre5796
    @shubhamgadre5796 6 месяцев назад

    //while creating/designing the functions/properties, I am actually implementing abstraction.
    //What needs to be shown to public and what to keep private is Abstraction.
    //The Designing process of the Employee class is Abstraction.
    //The implementation of Employee class is Encapsulation, as we have wrapped up all the functions in
    //Validate() method.
    //That's how encapsulation implements abstraction.
    Am I right?? Time. 13:25

  • @akashgupta2971
    @akashgupta2971 2 года назад +4

    Huge respect for the efforts and time that you and your team have put, the sequence of the questions were very connecting and gradual... Now I have a better concept after watching the video... And for the question you asked at the end of the video... My answer is that abstract classes can be partially or not implemented whereas interfaces should be fully implemented.

    • @yosiosibemekun2785
      @yosiosibemekun2785 2 года назад

      An interface only allows you to define functionality, not implement it.

    • @akashgupta2971
      @akashgupta2971 2 года назад

      @@yosiosibemekun2785 yeah that's another difference

  • @manjuanoop7239
    @manjuanoop7239 Год назад +1

    Excellent material thanks for sharing such an informative video👍🏻

  • @godwinchalz4863
    @godwinchalz4863 Год назад +1

    best video for oops in C#

  • @keshavt6982
    @keshavt6982 4 месяца назад

    Keep up the great work. Explanation was super easy to understand

  • @deepz513
    @deepz513 2 года назад +1

    thank you sir, along with deeply explaining the concepts you are valuable advised is much appriciated.

  • @CALLMEMANISH82
    @CALLMEMANISH82 10 месяцев назад +1

    thanks, very beneficial video to revise oop concepts.

  • @justiceeziefule9308
    @justiceeziefule9308 Год назад +1

    This is well explained. Thank you bro

  • @abdullahahmed8468
    @abdullahahmed8468 2 года назад +1

    amazing content with clear and simple answers, Thanks alot

  • @phanirao2008
    @phanirao2008 2 года назад +1

    wonderful, very crispy, specially example taken easy than domian specific

  • @vidyamahathi6057
    @vidyamahathi6057 2 года назад +7

    I got a job.I just watched this video for oops concepts 😁

    • @MrMcKnite
      @MrMcKnite 3 месяца назад

      Happy for you mate

  • @AhmedAdel-xg1cm
    @AhmedAdel-xg1cm Год назад +1

    Very intuitive and clear explanation of the concepts , thanks a lot for sharing. hope u will make a video for solid principles

  • @shadabkhan681
    @shadabkhan681 2 года назад

    Ang Laga dia h sir jee Ap ney. Behtreeeeen🥰🥰🥰

  • @legendgattu
    @legendgattu 2 года назад +6

    Abstraction is exposing only whatever is necessary outside a class. Encapsulation is binding data and behaviour (methods) together.

  • @kishanpatel6657
    @kishanpatel6657 Год назад +1

    Very good point to point.

  • @nagaboddu852
    @nagaboddu852 7 месяцев назад +1

    Thank you sir , it’s very useful 😊

  • @shivamsoni4215
    @shivamsoni4215 Год назад +1

    Thank you for making simple topic complicated ♥

  • @manpreet.mg16
    @manpreet.mg16 2 года назад +1

    You have done great video short and ans to remember in easiest way

  • @praveenrajubattula701
    @praveenrajubattula701 2 года назад +5

    Good video. Just 1 correction - interface can contain implementation, which was implemented in c#8.

  • @theintuitivetruth
    @theintuitivetruth 2 года назад +3

    For the answer to last query,
    Even though we write abstract class same as interface, but we cannot do multiple inheritance of the abstract class,
    whereas we can implement multiple interfaces.

    • @ryuzaki6865
      @ryuzaki6865 2 года назад

      Plus when we are implementing methods of an Interface we don't need to use the "override" keyword, whereas when we are implementing the abstract method of an abstract Class we need to use the "override" keyword.

  • @kelpiekrisps
    @kelpiekrisps 9 месяцев назад +1

    This was real great, thank you!

  • @jurijdevelopment1241
    @jurijdevelopment1241 7 месяцев назад

    Brilliant explanation! Keep doing more videos!

  • @nks98968
    @nks98968 2 года назад +1

    Very knowledgeable..Thanks

  • @thiyasjenitha2535
    @thiyasjenitha2535 Год назад

    Congrats ur good teacher 🧑‍🏫

  • @dorothyfung5605
    @dorothyfung5605 2 года назад +1

    Thanks very much for preparing and explaining stuff in such clear and organised way! :)

  • @judycariaga3945
    @judycariaga3945 2 года назад +4

    You really great at explaining it. Now I understand the OOP more. Thank you so much. ♥️

  • @yilienchi5380
    @yilienchi5380 2 года назад +1

    I like APIE concept! That's pretty helpful! Thank you so mcuh

  • @Devdumplings
    @Devdumplings 2 года назад +1

    This is the best one compared any oops languages. Having come from a different language background finally I understood what exactly the concepts clearly and thanks for being realistic about the preparation importance as I was a unprepared hero 😂

  • @Shubhamkumar-ir5ox
    @Shubhamkumar-ir5ox 2 года назад +1

    Thanks Sir. Much more Appreciated.

  • @lehcyllehc
    @lehcyllehc 2 года назад +1

    Thank you for this. I know you put so much effort and I gladly appreciate it. The way you explain each questions are easy to understand.
    I subscribed and liked this video. Looking forward to all your videos. :)

  • @hassanadil3535
    @hassanadil3535 2 месяца назад

    Hi sir, referring to your question difference between abstract class and interfaces, the difference is abstract is actually used to write a complete process in which base process might be the same but the corresponding processes might be different and those will be implemented by the derived class for example, I am going to write a process for calculating gratuity for two types of employees permanent and contractual and 1 years gratuity for both of them are 100% net pay and 60% net pay respectively, now calculating gratuity is the purpose but these two implementations will be provided by the derived classes and will be invoked by the abstract class's method. Interface is a means for bounding a class to must have a couple of properties or methods.

  • @chandradhamii
    @chandradhamii Год назад +1

    This video is definitely a 🫂 for any interview 🥳

    • @chandradhamii
      @chandradhamii Год назад +1

      Thanks for making such content 🙏

  • @vagatsinghrathore1756
    @vagatsinghrathore1756 Год назад +1

    Really awesome, thank u so much 🎉

  • @abdulrehman8957
    @abdulrehman8957 2 года назад +1

    Thanks for this video, you explain very well about OOP concepts and your presentation skills are too good. Well done and keep it up.

  • @eddie9559
    @eddie9559 Год назад

    I watched the whole video @Questpond

  • @reshmabegampathan395
    @reshmabegampathan395 2 года назад +1

    Thank you for sharing these with us with practical. Really. We can grasp easily with practical. My ans to ur question: In abstract class, there is non abstract methods also so we don’t have to implement that, only we need to implement abstract methods but in interface, all things we need to implement forcefully. Please tell me this is right or wrong. Once again, thank you so much. Keep going.

  • @Aalii6
    @Aalii6 Год назад +1

    very helpful, thank you! 👍👍

  • @reddit_thoughts_now
    @reddit_thoughts_now 2 года назад +1

    Thanks for the video, it was very helpful!

  • @durgaprasadgarapati1748
    @durgaprasadgarapati1748 2 года назад +2

    Waiting for this video sir thanks for sharing

  • @praphulshresth
    @praphulshresth Год назад

    Excellent work guru ji, maja hi aa gya. or videos banayeeye python par