Arjun Thakur has Published 1025 Articles

Static binding vs Dynamic binding in C#

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 14:49:26

3K+ Views

Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time.Compile Time Polymorphism or Static BindingThe mechanism of linking a function with an object during compile time is called early binding. It is ... Read More

Fibonacci Series in C#

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 14:17:48

7K+ Views

To find Fibonaccli series, firsty set the first two number in the series as 0 and 1.int val1 = 0, val2 = 1, vNow loop through 2 to n and find the fibonai series. Every number in the series is the sum of the last 2 elements −for(i=2;i

CSS Box Shadow

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 13:24:40

280 Views

The CSS box-shadow property is used to add shadow effects to elements. The following is an example to add a box shadowExampleLive Demo                    div {             width: 300px;             height: 100px;             padding: 15px;             background-color: red;             box-shadow: 10px 10px;          }                     This is a div element with a box-shadow     Output

How can we update MySQL table after removing a particular string from the values of column?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 13:22:08

523 Views

We can update MySQL table after removing a particular string from the values of a column by using TRIM() function along with UPDATE clause. Following the example from ‘examination_btech’ table will make it clearer −ExampleSuppose if we want to delete the values ‘(CSE)’, from last, of column ‘Course’ and want to update the table ... Read More

What is early binding in C#?

Arjun Thakur

Arjun Thakur

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

1K+ 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

413 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

4K+ 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

253 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

179 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

254 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

Advertisements