Free C#, .Net and Sql server video tutorial for beginners and intermediate programmers.
Hello Venkat,I'm bit confused between new(shadow) and override keyword.Kindly explain what's the difference and when to use these.Thanks,Rohan
Got my query resolved...The answer is in your next video.Thanks...
Hi Sir,There is a confusion. I have heard that there are two type of polymorphim.1.Compile Time2.RuntimeI think the above video explains the runtime polymorphism.Kindly explain compile time polymorphism.
I think this is simplier way to explain polymorphism:Employee FTE = new FullTimeEmployee();FTE.PrintFullName();Employee E = new Employee();E.PrintFullName();
what are the uses of static key word and how should i use ?
Hi Venkat,I have one confusion about run time polymorphism. How one can say that overriding of method happens at run time and overloading at compile time.ThanksRakesh
contd.BaseClass bObj = New ChildClass()bObj.commonMethodName1> If Base method 'virtual'(Or 'override' in case on multi level inheritance) and child method 'override' -> child method executes2> If Base method is not 'virtual'(Or 'override' in case on multi level inheritance) and child method 'new'(optional, vs prompt) -> base method executes (Also called method hiding)
If you like this website, please share with your friends on facebook and Google+ and recommend us on google using the g+1 button on the top right hand corner.