Abstract Class vs Interface in C# | C# Interview Questions | Csharp Interview Questions

Поделиться
HTML-код
  • Опубликовано: 14 май 2021
  • abstract class vs interface in C#
    For Full 60 plus C# Interview Questions www.questpond.com/c-step-by-s...
    Below is the Full syllabus of C# interview question courses
    C# Interview Questions and answers
    Question 1 :- Explain difference between .NET and C# ?
    Question 2 :- .NET Framework vs .NET Core vs .NET 5.0
    Question 3 :- What is IL ( Intermediate Language) Code ?
    Question 4 :- What is the use of JIT ( Just in time compiler) ?
    Question 5 :- Is it possible to view IL code ?
    Question 6 :- What is the benefit of compiling in to IL code ?
    Question 7 :- Does .NET support multiple programming languages ?
    Question 8 :- What is CLR ( Common Language Runtime) ?
    Question 9 :- What is managed and unmanaged code ?
    Question 10 :- Explain the importance of Garbage collector ?
    Question 11 :- Can garbage collector claim unmanaged objects ?
    Question 12 :- What is the importance of CTS ?
    Question 13 :- Explain CLS ?
    Question 14 :- Difference between Stack vs Heap ?
    Question 15 :- What are Value types & Reference types?
    Question 16 :- Explain boxing and unboxing ?
    Question 17 :- What is consequence of boxing and unboxing ?
    Question 18 :- Explain casting,implicit casting &explicit casting ?
    Question 19 :- What can happen during explicit casting ?
    Question 20 :- Differentiate between Array and ArrayList ?
    Question 21 :- Whose performance is better array or arraylist ?
    Question 22 :- What are generic collections ?
    Question 23 :- What are threads (Multithreading)?
    Question 24 :- How are threads different from TPL ?
    Question 25 :- How do we handle exceptions in C#(try/catch)?
    Question 26 :- What is the need of finally?
    Question 27 :- Why do we need the out keyword ?
    Question 28 :- What is the need of Delegates ?
    Question 29 :- What are events ?
    Question 30 :- difference between Abstract class and interface ?
    Question 31 :- What is a delegate and How to create a delegate ?
    Question 32 :- Where have you used delegates ?
    Question 33 :- What is a Multicast delegates ?
    Question 34 :- What is a Event ?
    Question 35 :- How to create a event ?
    Question 36 :- Delegate vs Events.
    Question 37 :- What is a class and object ?
    Question 38 :- Abstraction vs Encapsulation?
    Question 39 :- Explain Inheritance ?
    Question 40 :- Explain virtual keyword ?
    Question 41 :- What is overriding ?
    Question 42 :- Explain overloading ?
    Question 43 :- Overloading vs Overriding ?
    Question 44 :- What is polymorphism ?
    Question 45 :- Can polymorphism work with out inheritance ?
    Question 46 :- Explain static vs dynamic polymorphism ?
    Question 47 :- Explain operator overloading ?
    Question 48 :- Why do we need Abstract classes ?
    Question 49 :- Are Abstract methods virtual ?
    Question 50 :- Can we create a instance of Abstract classes ?
    Question 51 :- Is it compulsory to implement Abstract methods ?
    Question 52 :- Why simple base class replace Abstract class ?
    Question 53 :- Explain interfaces and why do we need it ?
    Question 54 :- Can we write logic in interface ?
    Question 55 :- Can we define methods as private in interface ?
    Question 56 :- Want to change interface whats the best practice ?
    Question 57 :- Explain Multiple inheritance in Interface ?
    Question 58 :- Explain Interface Segregation principle ?
    Question 59 :- Can we create instance of interface ?
    Question 60 :- Can we do Multiple inheritance with Abstract classes ?
    See our other Step by Step video series below :-
    For more such videos subscribe / questpondvideos
    JavaScript Interview Questions: • JavaScript Interview Q...
    Learn Angular tutorial step by step tinyurl.com/ycd9j895
    ASP.NET MVC Core Interview Questions with answers:- • ASP.NET MVC Interview ...
    C# interview questions and answers:- • C# Interview Questions...
    C# tutorial for beginners(4 hrs):- • C# Tutorial for Beginn...
    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
    Learn SQL Server Step by Step tinyurl.com/ja4zmwu
    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
    PHP Interview Questions : • PHP Interview Question...
    For more details contact questpond@questpond.com OR call +919967590707-9619842789.
    #AbstractClassVSInterfacesinC# #CSharpInterviewQuestions #C#InterviewQuestions&Answers #CSharpQuestions #CSharpAbstractClass #C#Interface #C#InterviewQuestionsforFreshers #InterviewQuestionsforC#

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

  • @questpondvideos
    @questpondvideos  3 года назад +1

    ASP.NET, C# Job Market : ruclips.net/video/H3JEWAp32-s/видео.html
    30 Important C# Interview Questions : ruclips.net/video/BKynEBPqiIM/видео.html
    Software Architecture Interview Questions : ruclips.net/video/AtTgcbLOqMM/видео.html
    25+ OOPS Interview Questions : ruclips.net/video/u99wAoBjDvQ/видео.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

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

      Why haven't you inherited enquiry in customer class of abstract

  • @tigran12
    @tigran12 3 года назад +13

    Very good lesson!! Finally I understand the difference between abstract classes and interfaces!! Thank you!!

    • @questpondvideos
      @questpondvideos  3 года назад +3

      Thanks. Do visit www.questpond.com/c-step-by-step-with-interview-questions---answers-series/cid62

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

    This is the topic I couldn't understand for a long time. You just explained it so well, I got that immediately. Thank You very much!

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

    This videos is best explanation I found on youtube, it almost clears all the doubts that confused me again and again about the differences between interfaces and absract classes.
    Thank you very much sir and god bless you

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

    such a nice explanation, I watched many but no one cleared the concepts to this level. Thank you sir.

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

    Amazing and clear! Thank you so much 😍

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

    Thank you so much for the video. you are a good teacher. Started to watch your courses.

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

    Thanks so much. You explanations are always thorough, clear and easily understood.

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

    May God bless you. Your session is very crystal clear narratiion.

  • @Bobby-mf6fw
    @Bobby-mf6fw 2 года назад

    Cleared all doubt .thanks a tone Sir👍

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

    Thousand likes for making such an useful video. I have learnt a lot about the differences. Thanks. Please keep uploading great videos to assist us fellow devs to understand better. The docs and stackoverflow at times are complicated

  • @Joe-ho6fo
    @Joe-ho6fo 3 месяца назад

    Best explanation of the subject I’ve heard.

  • @yamanthakur7352
    @yamanthakur7352 2 года назад +19

    Sir,
    As per the recent c# update, Beginning with C# 8.0, an interface may define default implementations for some or all of its members. So it would be now difficult to differentiate between abstract and interface...please review the update and highlight the differences...Thanks for the video, it was really detailed.

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

      This still does not change the fact that in C# a class can implement multiple interfaces but inherit from only one abstract class. In a language like C++ that supports multiple inheritance of classes, there is no technical difference between an interface and a pure abstract class (and indeed, C++ has no notion of an interface). This is not the case with C# and Java though.

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

      @@moravec481 that is one thing, however, when it comes to implementation of methods, how can we differentiate between both?

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

    Complex topic explained very beautifully.Thank you

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

    Best explanation I've ever seen.

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

    Examples are fabulous . Thanks

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

    U are so good in explaining. Thanks for sharing this information 🙂🙂

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

    the explaination is so clean and crisp!!!

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

    Thank you , really Enjoyed it and understood the concept 😬

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

    great explanations man!!! great work. much appreciated. peace!

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

    It is very clear... Good explanation...

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

    I do inquires all the time. Beautiful video regardless.

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

    Well explained sir,thanks a lot ...gratitude

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

    Thank you very much for this video.
    You gain one more follower in me.

  • @070tahsin
    @070tahsin 2 года назад

    very good explanation thanks!

  • @harmeetkukreja8750
    @harmeetkukreja8750 3 года назад +5

    Well explained. Even from your hometown the hunger to spread knowledge does not go. If Teaching is your hobby, learning is ours. Both are hungry

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

    Many thanks for your Video. Very helpful

  • @avinashsharma5942
    @avinashsharma5942 9 месяцев назад

    Well explained. video helped in clearing the doubt of pure abstract. Your way of explaining the concept in simplest possible form and that too with demonstration that's like cherry on the cake. Can you please share what are important concept that needs to be learnt in entity framework.

  • @amansharma-zo2zd
    @amansharma-zo2zd 8 месяцев назад +1

    Keep uploading ❤

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

    Thanks.. great explanation.. seriously still everyone asks this question.. I don’t know whyy!!!

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

    Super explanation, Congratulate friend.

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

    Crystal clear explanation.. thank you..

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

      Thanks. Do visit www.questpond.com/c-step-by-step-with-interview-questions---answers-series/cid62

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

    very very very well explained.

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

    Nice job

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

    awesome video! thanks a lot!

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

    thank you very much for the video it helped me a lot!

  • @DebugModeVideos
    @DebugModeVideos 3 года назад

    Very very nice video sir

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

    I can't thank you enough!

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

    Nice Explanation

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

    Thank you Sir.

  • @MCh638
    @MCh638 3 года назад +1

    simple yet a professional explanation, I am thinking of joining the courses in website but it is a little confusing since there are a lot of courses there ! I think it would be great if you consider making a (guide map) pdf or video that explain the target of all courses or study paths ?

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

      Thanks. Do visit www.questpond.com/c-step-by-step-with-interview-questions---answers-series/cid62

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

    He is a genius man

  • @user-rc5sp1sq7u
    @user-rc5sp1sq7u 8 месяцев назад

    Well explained 👍

  • @abissqlabissql6003
    @abissqlabissql6003 3 года назад +5

    When its .NET and C# only one king in India Shivprasad Koirala....This video takes you to different level of thinking.

    • @questpondvideos
      @questpondvideos  3 года назад +8

      There are many better c# devs than me , its just that i create videos on youtube , write books so people know me. :-)

    • @1989vinayak
      @1989vinayak 2 года назад +2

      @@questpondvideos this is called remaining down to earth.. Dev's are many but the way you express/explain can be done by very few

  • @RachitJain4U
    @RachitJain4U 3 года назад

    Thanks sir :)

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

    greate job, thank you

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

    Thanks!! great

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

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

    Thank you sir 🙏 very well explained. Can you please make a video on oops concepts.. this is also a commonly asked interview question ..

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

      Hello Archana, under membership you can find c# interview Q&A video on OOPs concepts too i.e. Part 4.

  • @ravikiran3284
    @ravikiran3284 3 года назад

    Thank you so much Sir🙏

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

      Thanks. Do visit www.questpond.com/c-step-by-step-with-interview-questions---answers-series/cid62

  • @neerajsharma-ro7sg
    @neerajsharma-ro7sg 3 года назад

    Very well explained sir.

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

      Thanks. Do visit www.questpond.com/c-step-by-step-with-interview-questions---answers-series/cid62

  • @semnal.m2581
    @semnal.m2581 6 месяцев назад

    Thanks. My question is: how to save all classes who implemented interfaces as xml file into one single file? Can you provide an example? And how to load that file after? I never found this on net.

  • @yashpatil2536
    @yashpatil2536 9 месяцев назад

    Thanks!

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

    Sir After c# 8- 2019, Microsoft has introduced default method implementation in the Interfaces.

  • @shashankshekhar-cl7rd
    @shashankshekhar-cl7rd 8 месяцев назад

    For 8 years of experience can u suggest wat are the questions should I focus on??

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

    loved the clarity and emphasis on your voice. It was indeed a very good explanation

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

    If you only need to know the overall difference: 5:10

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

    Sir are you related to Manisha Koirala

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

    Why haven't you inherited enquiry in customer class of abstract

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

    I have one question. U said we cannot do multiple inheritance in C#, but we could do multilevel inheritance.
    We could have an EnquiryCustomer with name prop and Enquiry () and a Customer which inherits from EnquiryCustomer and has discount () then concrete classes can inherit from Customer class.

    • @chhavimiglani2966
      @chhavimiglani2966 3 года назад

      I too have this same question sir..

    • @maxron6514
      @maxron6514 3 года назад +3

      Why would you create 2 classes only to be inherited from concrete classes further down in the same hierarchy?

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

    Interfaces are very useful on large projects where there are multiple programmers, so the code doesn’t turn into a dogs dinner?
    Is this fair to say?

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

      yes it is so true that it does become a Dog dinner. But i think in interview technical explanation would be needed.

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

    Why would I do planning in the code? I can plan the code prior to coding using UML for example, it doesn’t make since?

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

      Documents like UML and word does not bring enforcement in the code like interfaces....We all know document is always out of synch with code.

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

      @@questpondvideos you mean do not bring?

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

      @@tko9753 🙂 yes

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

    In this example, why not derive the Customer class from parent class CustomerEnquiry. Then Lead could be derived from parent CustomerEnquiry and PlatiniumCustomer could be derived from parent Customer. Does this not accomplish the same thing? Why is using interfaces better than this solution? (An honest question from someone trying to have a better understanding)

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

    i have membership. how can I download pdf for interview questions

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

      Check first part of each series for PDF download link in the description.

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

      @@questpondvideos Couldn't find any link to download .could you please help

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

      @@steffymaryjose5828 Check Part1 of C#, ASP.NET MVC, Angular, SQL interview Q&A videos. Links are already given in the description.

  • @user-ux3qt4sx3e
    @user-ux3qt4sx3e 11 месяцев назад

    Conclusion : interface can support multiple inheritance

  • @s.-.-.
    @s.-.-. 5 месяцев назад

    What is the difference between ICustomer buyer_as_interface_type = new Customer() and Customer lead_from_class_type = new Customer() ?