adspace


Explain how to achieve polymorphism in vb.net?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between system.string and system.stringbuilder classes?

1082


What is option strict?

1214


What is the use of assembly?

1081


How to send xml file on server using http protocol?

1077


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

1108


Explain how can we remove handlers at run time?

1077


What are the features of c# which are not present in vb.net?

1185


What is early binding?

1016


How to retrieve images in sql server database through vb.net?

1043


How to store images in sql server database through vb.net?

1024


Explain an assembly?

1059


Explain the difference between datatable and dataset?

1423