@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.
@amjadkassar66059 ай бұрын
Thank you sir for this video. Very helpful this video. Please create video on the MVC questions
@rahulsalinskee76858 ай бұрын
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.
@AmirKhan-wo7cd Жыл бұрын
Please recheck the examples provided for overriding and method hiding.
@code_elevate Жыл бұрын
Hello Amir, can you elaborate here what changes you are expecting.. feel free to add the details.. I always welcome improvement and correction.
@pravinpannase4230 Жыл бұрын
@@code_elevate😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮😮
@preetipatil8354 Жыл бұрын
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
@abhisheksrivastav364210 ай бұрын
sir new ke case me do some work and override ke case me coding return karega
@Aman-x5g Жыл бұрын
Keep uploading ❤
@pratikgaikwad457611 ай бұрын
@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.
@rahulsalinskee76858 ай бұрын
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.
@naveenpujari899610 ай бұрын
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.
@dharmendrakumarsah76337 ай бұрын
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.
@dattatrayarsule30896 ай бұрын
you are correct
@Aman-x5g Жыл бұрын
Sir can you also upload coding questions and answers
@Umairkhan-ou3rd4 ай бұрын
How to handle scrnario type question
@code_elevate4 ай бұрын
This is very vast question.. but most of them you can answer if you practice.. mostly by creating small or big projects..
@ermahesh2009 Жыл бұрын
good one
@code_elevate Жыл бұрын
Stay tuned for a new video on advance c# interview questions.. coming soon..😊😊
@rohit.badgujar Жыл бұрын
Thank you for sharing :)
@code_elevate Жыл бұрын
My pleasure! Rohit. 🙂
@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
@code_elevate Жыл бұрын
@@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 Жыл бұрын
@@code_elevate 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 Жыл бұрын
@@code_elevate why it's not support multiple inheritance you explained well, I agree with you for that
@codedtech755 ай бұрын
👌
@priyankagupta-dg4qr10 ай бұрын
Sir please help I have 9 LPA from Wipro and neosoft which company I should join as software developer?
@code_elevate10 ай бұрын
Wipro.. if package don't have much difference then choose branded company.. choose non branded company only when package difference is huge.