OOPS Interview Questions and Answers | Object Oriented Programming Interview Questions C#
Вставка
- Опубліковано 4 чер 2024
- 150 C# Interview Questions & Answers videos - www.questpond.com/c-interview...
This 1 hour of video covers most asked Interview questions with answers around OOP Concepts -
00:00 Introduction
02:58 Question 01 :- Why do we need OOP?
06:47 Question 02 :- What are the important pillars in OOP?
09:55 Question 03 :- What is a Class and Object ?
11:01 Question 04 :- Abstraction VS Encapsulation ?
16:28 Question 05 :- Explain Inheritance ?
18:15 Question 06 :- Explain Virtual Keyword ?
18:15 Question 07 :- What is Overriding ?
19:30 Question 08 :- Explain Overloading ?
20:50 Question 09 :- Overloading VS Overriding ?
23:04 Question 10 :- What is Polymorphism ?
23:53 Question 11 :- Can Polymorphism work without Inheritance ?
24:43 Question 12 :- Explain Static VS Dynamic Polymorphism ?
26:32 Question 13 :- Explain Operator Overloading ?
27:18 Question 14 :- How to do Custom Operator Overloading ?
30:16 Question 15 :- Why do we need Abstract Classes ?
34:10 Question 16 :- Are Abstract methods Virtual ?
35:27 Question 17 :- Can we create an instance of Abstract Classes ?
35:27 Question 18 :- Is it compulsory to implement Abstract Methods ?
36:44 Question 19 :- Why simple base class cannot replace Abstract Classes?
38:51 Question 20 :- Explain Interface and Why do we need it ?
40:11 Question 21 :- Can we write logic in Interface ?
40:11 Question 22 :- Can we define methods as private in Interface ?
46:58 Question 23 :- To change Interface what's the best practice ?
47:07 Question 24 :- Explain Multiple Inheritance in Interfaces ?
51:08 Question 25 :- Explain Interface Segregation Principle ?
53:09 Question 26 :- Can we create instance of Interface ?
53:33 Question 27 :- Can we do multiple inheritance of Interface ?
-------------------------------------------------------------------------------------------------------------
For more such videos visit www.questpond.com
See our other Step by Step video series below :-
For more such videos subscribe / questpondvideos
35 Important JavaScript Interview Questions: • JavaScript Interview Q...
30 Important C# Interview Questions : • C# Interview Questions...
25 Important ASP.NET Interview Questions : • ASP.NET MVC Interview ...
25 Angular Interview Questions : • Angular Interview Ques...
20+ SQL Server Interview Questions : • SQL Server Interview Q...
10+ Power BI Interview Questions : • Power BI Interview Que...
20 PHP Interview Questions : • PHP Interview Question...
5 MSBI Interview Questions : • MSBI Interview Questio...
Learn Angular tutorial step by step tinyurl.com/ycd9j895
ASP.NET MVC Core Interview Questions with answers:- • ASP.NET MVC Interview ...
C# tutorial for beginners(4 hrs):- • C# Tutorial for Beginn...
Learn SQL Server Step by Step tinyurl.com/ja4zmwu
Learn Azure Step by Step:- • Azure Tutorial for Beg...
Azure AZ-900 fundamentals certification :- • AZ 900 Certification |...
AZ- 204 certification Azure:- • Azure 204 Certificatio...
Learn MVC 5 step by step in 16 hours:- • Learn ASP.NET MVC 5 ( ...
Learn Design Pattern Step by Step goo.gl/eJdn0m
Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
Python Tutorial for Beginners:- • Python Tutorial for Be...
Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
Learn Power BI Step by Step:- tinyurl.com/y6thhkxw
------------------------------------------------------------------------------------------------
For more details :-
🌐 Website : www.questpond.com
📱 Mob. No. : +91-9967590707 / +91 7700975156 / +91-22-49786776
📧Email : questpond@questpond.com / questpond@gmail.com / questpond@yahoo.com
Share, Support, Subscribe and Connect us on!!!
UA-cam: / questpondvideos
Twitter: / questpond
Instagram : / questpond
Facebook : / questpond
30 Important C# Interview Questions : ua-cam.com/video/BKynEBPqiIM/v-deo.html
Software Architecture Interview Questions : ua-cam.com/video/AtTgcbLOqMM/v-deo.html
ASP.NET, C# Job Market : ua-cam.com/video/H3JEWAp32-s/v-deo.html
20+ Garbage Collection (GC) Interview Questions : ua-cam.com/video/RgfuVp2lXIA/v-deo.html
20+ SQL Server Interview Questions : ua-cam.com/video/SEdAF8mSKS4/v-deo.html
10+ Power BI Interview Questions : ua-cam.com/video/Cozc9WNBRt4/v-deo.html
20 MSBI Interview Questions : ua-cam.com/video/Nw_sHEKnOUE/v-deo.html
SQL Server Joins : ua-cam.com/video/KTvYHEntvn8/v-deo.html
SQL Step by Step - ua-cam.com/video/uGlfP9o7kmY/v-deo.html
Angular Step by Step Tutorial for Beginners : ua-cam.com/video/-9VcW7MBDs8/v-deo.html
25 Angular Interview Questions : ua-cam.com/video/-jeoyDJDsSM/v-deo.html
25 Important ASP.NET Interview Questions : ua-cam.com/video/pXmMdmJUC0g/v-deo.html
35 Important JavaScript Interview Questions : ua-cam.com/video/Zb4dPi7CANU/v-deo.html
20 MySQL Interview Questions : ua-cam.com/video/9hfjC-BpY20/v-deo.html
5 MSBI Interview Questions : ua-cam.com/video/5E815aXAwYQ/v-deo.html
20 PHP Interview Questions : ua-cam.com/video/1bpNSynUrl8/v-deo.html
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?
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.
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.
@@jaym4358 Congratulations!!!
@@jaym4358 How was the final round ?
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!
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!!!
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!
This video has cleared my biggest confusion related to Encapsulation vs abstraction which I have been facing for over 5 years now. Thanks
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.
Another difference between abstract class and interface is you can't do a dependency injection with abstract class..
Latest version of c# allow interfaces to provide default implementation
@@phelipepalte actually you can.
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.
You have explained this far better than actual training videos.
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.
Aftter many year (10 years) search on google or youtube, I found best programming concept, What I exactly needed. Thank you @Questpond.
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.
did you get the job
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.
Yes. Also we should talk about method signatures.
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.😉
@@priyeshdubey40 yup. U r right. In the comment section he has accepted the mistake. Anyway a great video.
@@priyeshdubey40 exactly I thought the same thing
You have a real talent for education and clear explanation. Thank you for all you have given.
THIS is GOLD, you can easily follow up with any OOP language. thanks sir
🤗
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.
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
IMO, your c# (and other) videos are some of the best on UA-cam. They are very helpful. I plan on ordering your courses on your website. Thank You
Sir, I have cleared my interview in reputed MNC just by going through your interview videos. thank you so much
Do you have more interview questions
@@rangababupolavarapu517 you can visit www.questpond.com/interview-questions---answers-tutorial/cid63 for interview Q&A videos
This is the best explanation of abstraction vs encapsulation that I've ever heard. Thank you, sir!
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 😂
Very intuitive and clear explanation of the concepts , thanks a lot for sharing. Looking forward to learn more from your videos.
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.
Thanks very much for preparing and explaining stuff in such clear and organised way! :)
You really great at explaining it. Now I understand the OOP more. Thank you so much. ♥️
Best OOP explanation video in UA-cam !
Best video so far. Clear, right at the point. Im getting the point right away. Thank you for sharing the knowledge sir.😃🙇♂
Its really underrated channel; I my opinion its by far the best. I am following Questpond since 7 years
answer to the last question if later on they wat to add a new functionality or new method , in abstract class we cant use multiple inheritance but in interface we can .. i hope this is the answer.. thanks for your videos it helps allot. great work👍
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. :)
Abstraction is exposing only whatever is necessary outside a class. Encapsulation is binding data and behaviour (methods) together.
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
Thank You 🙏
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.
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!
Multiple inheritance is what makes interface and abstract class differ from each other when they become technically similar
So right. Thats the only BIG technical difference
@@questpondvideos Thank you.. Your explanations are so good sir 👍
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
Great prep, very concise and to the heart of the matter
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!
Thank You :)
Excellent. This is such an easy refresher or explanation of OOPS concepts.
Thank you for making simple topic complicated ♥
thank you sir, along with deeply explaining the concepts you are valuable advised is much appriciated.
Best explanations! Thank you for this🙏🙌
I love your video! Very well explained! Keep it up!
Thank you for the lesson. I can't tell you how much this helped. I appreciate your effort. Liked and Subscribed!
Good video. Just 1 correction - interface can contain implementation, which was implemented in c#8.
This is the Best Explanation one could have asked for
Very very useful video for us, appreciate your efforts
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.
An interface only allows you to define functionality, not implement it.
@@yosiosibemekun2785 yeah that's another difference
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
You are awesome... Helped me a lot in the interview.
Hi Sir, Regarding Interface, should we follow the rules implied from C# 8 features? Because in C#8, we could provide access modifiers explicitly and it can contain default body implementation which can be accessed by up casting it.
amazing content with clear and simple answers, Thanks alot
wonderful, very crispy, specially example taken easy than domian specific
Very good video, never paid attention for 1 hour in a UA-cam video
Thanks for this video, you explain very well about OOP concepts and your presentation skills are too good. Well done and keep it up.
Question 11: can polymorphism work without inheritance?
Yes for static polymorphism
No for dynamic polymorphism
Exactly!
Wah!! What an explanation boss!! Crystal clear explanation... 🙌 really thank you🔥
You told that without inheritance polymorphism will not work but you need to see overloading case which is example of compile time polymorphism which is not following the inheritance thing ..
Sir your explanation is very systematic.
Sir please upload Question and answer for top 50 C programming coding Question for fresher interview.
very very detailed and good quality video.
i watched till question 27
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.
One of best video about oops concepts interview question and answers I come across. Please keep up good work sir👍.
Simply superb explanation...thank you @Questpond.
Best OOPS Interview Questions and Answers on UA-cam!
I like APIE concept! That's pretty helpful! Thank you so mcuh
Love this video! Could you make one for Java Core Interview questions?
Such an informative video!! Thank you so much, I feel very prepared for any future tech interviews.
hi explanation is awesome and you did great efforts in compiling all stuff in one place. Thanks
please provide ebook of questions
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.
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.
Thanks for the video, it was very helpful!
Very intuitive and clear explanation of the concepts , thanks a lot for sharing. hope u will make a video for solid principles
You have done great video short and ans to remember in easiest way
I got a job.I just watched this video for oops concepts 😁
Awesome sir
It helping me to learn C#❤️
Brilliant explanation! Keep doing more videos!
Thanks you for uploading
Hello Shiv Sir
You are great
Interfaces should follow the Interface Segregation Principle from Solid Design Pattern
Awesome way to answers the OOP questions. Love from Pakistan 🇵🇰
Excellent material thanks for sharing such an informative video👍🏻
amazing video,, cleared all the concepts.. Thanks
Waiting for this video sir thanks for sharing
24:38 Inheritance is not must for polymorphism as you can implement static polymorphism without inheritance. Please let me know sir if you had a different mean.
I find this Channel You saved My lot of time thanks ❤
Thank you so much
Parent class is also called super class or base class. Child class is also called derived class... Some interviewer asked this question. So I decided to comment here down for such amazing video.
Hello Shiv any chance for 8th edition of .net Inteview question by this year ?It's been almost 5 years
THANK YOU FOR THIS VIDEO
This was real great, thank you!
Sir as you have mentioned polymorphism can't be implemented without inheritance. However static polymorphism aka method overloading we can do it in the same class. So for me saying polymorphism can't be implemented without inheritance seems contradictory. Please advice
Yeah you caught me :-) and you are perfectly right. A object polymorphism ( Dynamic polymorphism) needs inheritance. Missed that word dynamic , thanks for correcting.
Do send a message to shiv_koirala@yahoo.com , would like to give you 8 months of subscription on Questpond. Happy learning.
@@questpondvideos Thankyou Sir for make this clear....
👍
@@questpondvideos can I also get it?? I too had the same doubt and checked the comments and i found this...
Thank you so much sir
No one cant explain this much easier in overriding and virtual keyword concepts
Thank you so much sir. i really like the way you explain.
Very good point to point.
Great teaching 👌👏
Thnku Shiv sir🙏
best video for oops in C#
Great work sir,thanks
My 95% interview was from this 58 mnt lecture ,unbelievable
This is well explained. Thank you bro