Это видео недоступно.
Сожалеем об этом.
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
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.
Thank you sir for this video.
Very helpful this video.
Please create video on the MVC questions
@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.
Keep uploading ❤
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.
you are correct
👌
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.
Please recheck the examples provided for overriding and method hiding.
Hello Amir, can you elaborate here what changes you are expecting.. feel free to add the details.. I always welcome improvement and correction.
@@simplyteching😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮
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
sir new ke case me do some work and override ke case me coding return karega
@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.
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.
Sir can you also upload coding questions and answers
good one
Stay tuned for a new video on advance c# interview questions.. coming soon..😊😊
How to handle scrnario type question
This is very vast question.. but most of them you can answer if you practice.. mostly by creating small or big projects..
Thank you for sharing :)
My pleasure! Rohit. 🙂
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
@@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..
@@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
@@simplyteching why it's not support multiple inheritance you explained well, I agree with you for that
Sir please help I have 9 LPA from Wipro and neosoft which company I should join as software developer?
Wipro.. if package don't have much difference then choose branded company.. choose non branded company only when package difference is huge.
this is wrong sir
bihari he sir app?
Itna thik hai mat boliye, dhyan nahi lagta sirji.
Thik hai... 😉😉