Arjun Thakur has Published 1109 Articles

What is early binding in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 13:18:04

770 Views

The mechanism of linking a function with an object during compile time is called early binding. It is also called static binding. C# provides two techniques to implement static polymorphism i.e Function overloading and Operator overloading.Let us learn about Function Overloading with an example −You can have multiple definitions for ... Read More

What is aggregation in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 13:15:21

263 Views

Aggregation is a directional relation between objects in C#. It is the relationship between objects.For example, Employee and AddressAn Employee is associated with a single Department, whereas a Department can have more than one employee. Let us see an example of Employee and Address −public class Address {    . ... Read More

What are class instances in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 12:45:18

3K+ Views

Class instances are objects. Like any other object-oriented language, C# also has object and classes. Objest are real-world entities and instance of a class. Access the members of the class using an object.To access the class members, you use the dot (.) operator after the object name. The dot operator ... Read More

How MySQL evaluates an empty hexadecimal value?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:58:42

162 Views

Actually, MySQL evaluates an empty hexadecimal value to a zero-length binary string. It can be demonstrated as follows −mysql> Select CHARSET(X''); +--------------+ | CHARSET(X'') | +--------------+ | binary       | +--------------+ 1 row in set (0.00 sec)The above result set shows that the empty hexadecimal value is a ... Read More

What are the comments in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:57:09

134 Views

Comments are used for explaining code. Compilers ignore the comment entries. The multiline comments in C# programs start with /* and terminates with the characters */ as shown below.Multi-line comments/* The following is a mult-line comment In C# /*The /*...*/ is ignored by the compiler and it is put to ... Read More

How to define dynamic data types in C#

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:36:55

173 Views

You can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time. C# 4.0 introduced the dynamic type that avoids compile time type checking.The following is the syntax for declaring a dynamic type −dynamic = value;Dynamic types ... Read More

Where do we use scope Resolution Operator (::) in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:18:56

536 Views

In C++ the scope resolution operator i.e. :: is used for global variables, whereas in C# it is related to namespaces.If you have a type that share an identifier in different namespace, then to identify them use the scope resolution operator.For example, to reference System.Console class, use the global namespace ... Read More

What is the Count property of Hashtable class in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:05:04

80 Views

To find the count of elements of Hashtable class, use the Count property. Firstly, set the Hashtable class with elements −Hashtable ht = new Hashtable(); ht.Add("One", "Tom"); ht.Add("Two", "Jack"); ht.Add("Three", "Peter"); ht.Add("Four", "Russel"); ht.Add("Five", "Brad"); ht.Add("Six", "Bradley"); ht.Add("Seven", "Steve"); ht.Add("Eight", "David");Now, count the number of elements using the Count ... Read More

How does MySQL QUOTE() function work with comparison values?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 10:42:27

86 Views

When QUOTE() function used with WHERE clause then the output depends upon the comparison values returned by WHERE clause. Following example will exhibit it −Examplemysql> Select Name, ID, QUOTE(Subject)AS Subject from Student WHERE Subject = 'History'; +-------+------+-----------+ | Name  | ID   | Subject   | +-------+------+-----------+ | Aarav ... Read More

In what cases, we cannot use MySQL TRIM() function?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 10:35:51

393 Views

Actually for using MySQL TRIM() function we must have to know the string which we want to trim from the original string. This becomes the major drawback of TRIM() in the cases where we want to trim the strings having different values. For example, suppose we want to get the ... Read More

Advertisements