Answer: Yes, C# class without constructor is possible. In fact, we can have a class without any constructor in C#. If we don’t declare any
Category: C# Basic Interview Questions
List of C# basic interview questions for freshers with best answers and notes asked in technical job interviews. | Only Real
Answer: The Static keyword in C# main () method is used, so that compiler can call it without or before creation of an object. Actually,
Answer:In C#, Static method is called using class name and instance method (non – static) must be called using a class object in a C#
Value type vs Reference type in C# Interview Question: What is difference between value type and reference type in C#.net from memory point of view?
Answer: In C#, an interface contains properties, methods, and events etc., similar like we have in a class. But, an interfaces only contains declarations of
Answer includes implicit interface in C# programming with example and will also differentiate with explicit Interface implementation. In an interview, we need to explain both
Method overriding in c# with real time example – In c# interview, we need to explain overriding definition with program example and when to use
Answer: Test cases for Sum(int a, int b) method. Positive Cases: Only int data type is accepted: Need to test if Sum () method accept
Answer: Explanation of Up-casting and Down-casting in C# inheritance with program examples. C# Up-Casting An assignment of derived class object to a base class reference
Answer: the order of execution of constructor and destructor call in c# inheritance: The constructor call is from top to bottom i.e. from base class