Archives for .net

.net

.net interview Questions – Part -1

 Can the interface inherit the interface? Can an abstract class implement an interface? Can an abstract class inherit an entity class? A: Interfaces can inherit interfaces. Abstract classes can implement interfaces. Abstract classes can inherit entity classes, but there are conditions. The condition is that the entity class must have an explicit constructor. Can the constructor Constructor be inherited?…
Continue Reading
.net

Tell me about the difference between classes and structures in .NET?

A: Structures and classes have a general grammar, but structures are subject to more restrictions than classes. The structure cannot declare that there is a default constructor, and the copy of the structure is created by the compiler. And destroyed, so no default constructors and destructors are needed. Structures are value types, so changes made to structure variables do…
Continue Reading