i
Global Quest Solutions GQS
Filter interviews by
I applied via Job Portal and was interviewed in Apr 2024. There was 1 interview round.
A private constructor is a constructor that can only be accessed within the class in which it is defined.
Private constructors are used to prevent the instantiation of a class from outside the class itself.
They are commonly used in classes that contain only static members and do not need to be instantiated.
Private constructors are also used in singleton design pattern to ensure that only one instance of a class can be c
Event and Delegate code example in C#
Create a delegate with the signature of the method you want to subscribe to
Define an event using the delegate type
Subscribe to the event by adding methods to the event delegate
Raise the event to notify subscribers
Code to reverse a string in C# using built-in methods
Use the ToCharArray method to convert the string to a character array
Use the Array.Reverse method to reverse the character array
Use the string constructor to create a new string from the reversed character array
Top trending discussions
Find largest element
Interview experience
Asia-Pacific Institute of Management
Classcanyon
SevenMentor
Mayoor School