Explain how to achieve polymorphism in vb.net?



Explain how to achieve polymorphism in vb.net?..

Answer / Pradeep Kumar Verma

"Polymorphism can be achieved in vb.net through inheritance and method overriding.
1. Inheritance: A derived class inherits properties and methods from a base class.
2. Method Overriding: If a derived class has a method with the same signature as a method in the base class, it can be overridden to provide a specific implementation.
3. Runtime Polymorphism: This occurs when an object's actual type is determined at runtime, allowing methods to behave differently based on the object's type."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB.NET Interview Questions

Explain redim keyword?

1 Answers  


What is the DIfference between Friend and Protected Friend?

6 Answers   CTS, Sykes Enterprises, TCS,


code for export,import,save,update,delete ?

1 Answers  


Explain private assembly?

1 Answers  


what are the types of threading models in VB.net ?

1 Answers   Satyam,


What are the different types of a stream?

1 Answers  


Which is the base class for all the classes in .net framework?

1 Answers  


How a base class method is hidden?

1 Answers  


What is the Difference between Web User Control and Web Custom Control?

6 Answers   Benchmark,


Explain option explicit?

1 Answers  


What do you mean by serialization and deserialization?

1 Answers  


What is enumerator?

1 Answers  


Categories