How to achieve abstraction in C# -oops

Learn how to provide necessary information to the users and hide the unnecessary details using C# programs. The concept of “providing necessary details to the clients/users and hiding the unnecessary details” is called Abstraction. As an example consider a login page where username and password is enough for the users. so, only username and password … Read more How to achieve abstraction in C# -oops

What is Encapsulation in C# – Best Answer

Answer includes concept of encapsulation in C# oops with various C# encapsulation examples with programs. Answer:Encapsulation in C# is one of the oops principles that is used for hiding complexities in programs. NOTE: Many candidates answer to this interview question “What is encapsulation in C#” like wrapping the class member fields into a method as … Read more What is Encapsulation in C# – Best Answer

NULL vs Empty string in oracle

Learn about NULL value and an empty string behavior in oracle database with example queries. NULL means no-value(nothing). An empty string(”) treated as NULL value Let’s create a table suppliers_tbl with the following table definition. Next, we’ll insert following records into this table. The first statement inserts a record with a supplier_name that is null, … Read more NULL vs Empty string in oracle

C# Exercise – On Constructor with Solution

C# exercises on constructor with solutions. EXERCISE-1: Answer the following questions in brief. When a class constructor gets called? If you create 5 objects of a class, then how many time constructors will be called? When you write a constructor, what return type do you write in constructor declaration? Why do you use constructor? EXERCISE-2: … Read more C# Exercise – On Constructor with Solution

How to compare two arrays in C# if they are Equal or Not.

How to compare two arrays in C# if they are equal or not using 2 methods with code example. By Comparing each corresponding element of both the arrays. Using SequenceEqual() method. Two arrays will be called equal if both the arrays have same corresponding elements and same number of elements. Comparing each element of both … Read more How to compare two arrays in C# if they are Equal or Not.