Explain why canot we use multiple inheritance and garbage collector paralelly in .net?



Explain why canot we use multiple inheritance and garbage collector paralelly in .net?..

Answer / Rahul Sahai

In .NET, Multiple Inheritance is not directly supported due to complexities such as ambiguity in method resolution and diamond problem. Garbage Collector, on the other hand, runs periodically to clean up unreferenced objects. Both cannot be used together efficiently because multiple inheritance can create circular references that make it difficult for the garbage collector to identify and clean up unused memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

Why do we use sqldataadapter?

1 Answers  


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

1 Answers  


What is ole used for?

1 Answers  


What are the advantage of ado.net?

1 Answers  


What is ado asp?

1 Answers  


What are the Data providers in ADO.Net?

1 Answers  


Which method is used by command class to execute SQL statements that return single value?

1 Answers  


Can we do database operations without using any of the ado.net objects?

1 Answers  


What is ADO .NET and what is difference between ADO and ADO.NET?

7 Answers   Ksb,


What is difference between executenonquery and executequery?

1 Answers  


Diff B/W DataSet vs DataTable

6 Answers   Star Wire,


What is ole2 format?

1 Answers  


Categories