C# basics Interview Questions
List is used to collect items that usually consist of elements of multiple data types. An array is also a vital component that collects several items of the same data type. List cannot manage arithmetic operations. Array can manage arithmetic operations. https://www.c-sharpcorner.com/article/how-to-insert-an-element-into-an-array-in-c-sharp2/#:~:text=You%20can%20insert%20an%20element,are%20examples%20of%20both%20methods. https://www.c-sharpcorner.com/UploadFile/mahesh/insert-item-into-a-C-Sharp-list/ Inheritance It supports the concept of code reusability and reduces the length of the code in object-oriented programming. Types of Inheritance are: Single inheritance Multi-level inheritance Multiple inheritance - not supported Hybrid inheritance - nt supported Hierarchical inheritance In Inheritance, the Child class can consume members of its Parent class as if it is the owner of those members (except private members of the parent). using System; namespace InheritanceDe...