Skip to main content

Posts

Showing posts with the label constructor interview questions in c#

47 Best C# Constructors and OOPs Questions and Answers [How to]

Constructor Concepts Private Constructor Parameterized Constructor Constant, read-only and static Keywords Base class Parameterized Constructor We have two classes, one is ClassA and other is ClassB, the ClassB inherit base class ClassA. If we make the object of child class ClassB then which class constructor called first? We know that Base class constructor called first. But if we creating object with parameters, and base class have both constructor default and parameter, then which constructor of base class called first. Basic OOPs Concepts Delegates Events Generics Indexers Out keyword Ref keyword Property Struct Arrays Collection of Classes Class Library Virtual | Override | new Keyword Objects|Classes Abstraction Encapsulation Inheritance Basic C# Concepts What are ASP.NET Delegates, Types and Examples? What are funk, Actionn and...

Best Use of C# Parameterize Constructors [How To?]

Question: We know that Base class constructor called first. But if we creating object with parameters, and base class have both constructor default and parameter, then which constructor of base class called first. namespace ConsoleNamespace {     class A     {         public A()         {             Console .WriteLine( "class A::Constructor()" );         }         public A( string name)         {             Console .WriteLine( "class A::Constructor() with params name: " + name);         }     }     class B : A     {       ...

SQL Server Tutorials | SQL Server Interview Questions

Stored Procedure Functions View – Virtual Table Trigger Index - Clustered, Non-clustered Cursor Joins Error Handling - TRY CATCH @@ERROR RAISERROR @@ROWCOUNT @@IDENTITY SQL Select Query ALL AND ANY AS COALESCE Between Operator Case Column Alias Compare Date Data Type Date - DATEDIFF Date Compare DESC DISTINCT EXISTS Group BY HAVING NOT EXISTS IS NULL ISNULL LIKE Logical Operator Math Operator MAXRECURSION NOT NULL Operator Precedence OR Order Columns Order Query Batch Query Columns Quotation Mark SELECT INTO SELECT String Compare To...