Это видео недоступно.
Сожалеем об этом.

25 C# interview questions and answers for experienced | Frequently asked interview questions | Hindi

Поделиться
HTML-код
  • Опубликовано: 14 авг 2024
  • In this video I have explained top 25 c# object-oriented programming interview questions.
    This is not only for experience freshers can also encounter these questions in their interview.
    These questions are not just random questions, I have tried to list only which I have experienced by myself.
    All the questions in the videos was asked multiple time to me during my interview and I found that these are the most frequently asked questions so I have shared with you.
    If you enjoy the questions do share with your network, it will definitely going to help them too.
    Subscribe the channel : / @simplyteching
    Visit Playlist
    • Top Interview question...
    -----------------------------------------------------------------------------
    Other playlists
    Interview Preparation : • Interview Preparation
    xUnit Testing in depth : • Unit Test. xUnit
    MSTest in depth : • Unit Test. MS Test
    .Net Core 3.1 MVC in detail : • .NET Core 3.1 MVC In D...
    C# basics Tutorial Playlist: • C# basics
    Concept Mania Playlist: • Concept mania
    Tips and Tricks: • Tips and Tricks
    -----------------------------------------------
    Gadgets I use
    Graphic Tablet (Red and Black) - amzn.to/3FHvTHQ -
    Double-Sided Whiteboard and Chalkboard - amzn.to/4638dbW
    4 Port 3.0 USB Hub - amzn.to/3QF3b0w
    Mic - amzn.to/46SPIIl
    Headphone - amzn.to/3Sr6kT1
    ---------------------------------
    Chapters
    0:00 - introduction
    00:14 - Q1: What is OOPs
    01:04 - Q2: Difference between Class and Object
    02:17 - Q3: What is polymorphism
    04:28 - Q4&Q5: Runtime and Compile time Polymorphism
    05:22 - Q6 : New, Override and virtual keyword
    06:34 - Q7: Virtual, Abstract and override method
    08:03 - Q8: What is Inheritance
    09:46 - Q9: What are types of Inheritance
    10:06 - Q10: What is Single Inheritance
    10:13 - Q11: What is Multilevel Inheritance
    10:37 - Q12: What is Hierarchical Inheritance
    10:59 - Q13: What is Hybrid Inheritance
    11:41 - Q14: What is Encapsulation
    13:15 - Q15: What is Access Modifiers and its scope
    15:18 - Q16: What is Abstraction
    17:28 - Q18: Why c# don't support Multiple Inheritance
    19:53 - Q19: What are the types of class
    22:07 - Q20: What are the types of constructor
    24:03 - Q21: What are the types of method
    25:24 - Q22: Execution order of static and instance constructor
    26:34 - Q23: Interface vs Abstract Class
    29:36 - Q24: Sealed vs Abstract Class
    30:51 - Q25: What is Generic Class
    Happy Preparing !!
    #simplyteching #interviewquestions

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

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

    In the case of Polymorphism:
    BaseClass Instance = new ChildClass();
    Case 1: If base class method is not virtual (Not virtual means no override), then instance will invoke or call BaseClass method.
    Case 2: If base class method is virtual (virtual but not overridden), then instance will invoke or call BaseClass method.
    Case 3: If base class method is virtual and overridden in ChildClass, then instance will invoke or call ChildClass method.
    Case 4: If base class method is not virtual and used new keyword to hide BaseClass method in ChildClass, then instance will invoke or call BaseClass method.
    Case 5: If base class method is virtual and used new keyword to hide BaseClass method in ChildClass, then instance will invoke or call BaseClass method.

  • @amjadkassar6605
    @amjadkassar6605 5 месяцев назад +1

    Thank you sir for this video.
    Very helpful this video.
    Please create video on the MVC questions

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

    @26:31 - there is a twist, if the derived class has a static variable which is initialised by the parent variable. Then in that case the static constructor of parent will be called first.

  • @Aman-x5g
    @Aman-x5g 11 месяцев назад +3

    Keep uploading ❤

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

    Thank you for the video, can you check, During Polymorphism child class of New Keyword Means printing base class method and override means printing child method. Please check you have described opposite.

  • @codedtech75
    @codedtech75 20 дней назад

    👌

  • @naveenpujari8996
    @naveenpujari8996 6 месяцев назад +1

    bhai kya aap puniya parsoon bajpayee k parivaar se ho kya.. aap ka bolnae ka lahja same ha.. karntikari.. bhahut krantikari... bdw.. good touchbase on basics.

  • @AmirKhan-wo7cd
    @AmirKhan-wo7cd Год назад +2

    Please recheck the examples provided for overriding and method hiding.

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

      Hello Amir, can you elaborate here what changes you are expecting.. feel free to add the details.. I always welcome improvement and correction.

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

      ​@@simplyteching😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮

    • @preetipatil8354
      @preetipatil8354 Год назад +3

      When we use new keyword i.e method hiding always base class method gets call
      And in method overriding using override keyword derived class method gets call

  • @abhisheksrivastav3642
    @abhisheksrivastav3642 6 месяцев назад +1

    sir new ke case me do some work and override ke case me coding return karega

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

    @4.01 there u have given program to explain method hiding concepts but the output u showed seems to be wrong because in case of new keyword the method will be called based on reference/static type(Person) not Instance type(Employee) so output is "Doing some work", correct me if i am wrong.

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

      In the case of Polymorphism:
      BaseClass Instance = new ChildClass();
      If base class method is not virtual (Not virtual means no override), then instance will invoke or call BaseClass method.
      If base class method is virtual (virtual but not overridden), then instance will invoke or call BaseClass method.
      If base class method is virtual and overridden in ChildClass, then instance will invoke or call ChildClass method.
      If base class method is not virtual and used new keyword to hide BaseClass method in ChildClass, then instance will invoke or call BaseClass method.
      If base class method is virtual and used new keyword to hide BaseClass method in ChildClass, then instance will invoke or call BaseClass method.

  • @Aman-x5g
    @Aman-x5g 11 месяцев назад +1

    Sir can you also upload coding questions and answers

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

    good one

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

      Stay tuned for a new video on advance c# interview questions.. coming soon..😊😊

  • @Umairkhan-ou3rd
    @Umairkhan-ou3rd 10 дней назад

    How to handle scrnario type question

    • @simplyteching
      @simplyteching  6 дней назад

      This is very vast question.. but most of them you can answer if you practice.. mostly by creating small or big projects..

  • @rohit.badgujar
    @rohit.badgujar Год назад +1

    Thank you for sharing :)

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

      My pleasure! Rohit. 🙂

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

      I'm not agree with you that c# support multiple inheritance using interface,
      Inheritance means already code is written and we are accessing that with the child class object.
      When we are using interfaces then we are implementing that interfaces in the derive class. That means it's not following the inheritance rule. There is nothing to inherit from interface except their structure, which we are implementing in derive class

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

      @@MyBuddyVlogs25 that is the question. Why it doesn't support multiple inheritance when it is the important characteristics of an object. That is why it uses interface to fulfill that..

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

      @@simplyteching no, it's correct, you are implementing the interfaces, not inheriting, the signature looks like inheritance but it's not the multiple inheritance, if I have to write something in my derive class while inheriting the interfaces then it's breaking the inheritance principles

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

      @@simplyteching why it's not support multiple inheritance you explained well, I agree with you for that

  • @priyankagupta-dg4qr
    @priyankagupta-dg4qr 5 месяцев назад

    Sir please help I have 9 LPA from Wipro and neosoft which company I should join as software developer?

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

      Wipro.. if package don't have much difference then choose branded company.. choose non branded company only when package difference is huge.

  • @abhisheksrivastav3642
    @abhisheksrivastav3642 6 месяцев назад +1

    this is wrong sir

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

    bihari he sir app?

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

    Itna thik hai mat boliye, dhyan nahi lagta sirji.