
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

2K+ Views
In this article, we'll look at how the Python programming language can help people who are studying electronics engineering. Do you want to know how Python can aid electronics engineers? You've come to the right place; keep reading to learn more. In today's fast− changing world, the IT business is always a trending market. Programming is one of the many skills required to be successful in the IT industry. There are numerous programming languages that are used for a variety of purposes. Python is a trendy programming language that is known for its versatility and can be learned and deployed ... Read More

6K+ Views
In this article, we are going to learn to show inheritance in class using go programming. Inheritance In Golang − One of the key ideas in object-oriented programming is inheritance, which refers to passing on the properties of the superclass to the base class. As classes are not supported by Golang, inheritance occurs through struct embedding. Since structs cannot be directly extended, we must instead use the idea of composition to create new objects using the struct. So, it's safe to say that Golang doesn't support inheritance. Example 1 Golang Program to Show Inheritance in Class The following code shows ... Read More

403 Views
The hashtable collection in C# is a non-generic collection of key-value pairs that are organized based on the key’s hash code. The key is used to access the elements in the hashtable collection. Hashing helps us to efficiently retrieve data and eliminates the need for costly techniques of searching data. Hashing technique used the key itself to locate the data. This hashtable key is immutable and does not allow duplicate entries in the hashtable. The Hashtable class is defined in the System.Collections namespace provides the base class libraries for hashtable collection in C#. This Hashtable class is used to create ... Read More

748 Views
Hashtable collection in C# is a collection of elements wherein each element consist of key-value pair. The key of the element is unique and non-null while the value of the element can be duplicated or even null. The key-and-value pairs are organized based on the hash code of the key. The key is used to access the elements in the collection. In C#, the class named Hashtable represents the hashtable collection. This class provides various constructors to construct/create the hashtable object. The Hashtable class also provides various methods and properties using which we can manipulate the hashtable collection. Let’s ... Read More

649 Views
The hashtable collection in C# stores key-value pairs. Each element or item in this collection is a key-value pair i.e. this collection is a double-element collection. The Key is unique, non-null, and used to access the elements in the hashtable. The hashtable collection is immutable and cannot have duplicate elements. This means combination of key-value should be unique. However, the values can be null or duplicated. The .Net Framework provides a HashTable class to implement the hashtable collection and contains the required functionality to implement a hashtable without any additional coding. Each element within the hashtable collection is a DictionaryEntry ... Read More

1K+ Views
A hash table is a collection in C# that holds items identified as key-value pairs. So unlike other data structures like the stack, queue, or ArrayList in C# that store a single value, hashtable in C# stores 2 values. These 2 values i.e. key-value pair form an element of the hash table. In a hashtable, the keys are unique and should not be null. The values in the hashtable can be null and also duplicated. In C#, the System.collections interface provides a class “Hashtable” which is used to represent the hashtable collection. This class provides various constructors to create a ... Read More

2K+ Views
The hashtable is an organized collection of key-value pairs wherein the keys are arranged as per the hash code of the key calculated using the hash function. While the keys should be non-null and unique in a hashtable, the values can be null and duplicate. The elements in the hashtable are accessed using the keys. In C#, the class “Hashtable” represents the hashtable collection. This class provides various properties and methods using which we can perform operations and access data in the hashtable. In this article, we will see how we can determine if a particular value is present ... Read More

317 Views
In this article, we will discuss how to get a numerator from a rational number. Syntax func NewRat(a, b int64) *Rat func (x *Rat) Num() *Int NewRat() function takes two integer numbers as input arguments and returns a rational number in the form of a/b. here a is the numerator and b is the denominator of a rational number. Num() function in the Go language returns the numerator of a rational number as the result in integer format. Method-1 Go language program to get the numerator from a rational number. Algorithm Step 1 − Import the fmt and ... Read More

291 Views
In this article, we will discuss how to get the denominator from a rational number. Rational numbers − In mathematics, rational numbers are defined as numbers that can be expressed in the form of a/b where a and b are integer values. For example- 1/3, 5/8 etc. Note that the denominator of a rational number can never be zero. Syntax func NewRat(a, b int64) *Rat func (x *Rat) Denom() *Int NewRat() function takes two integer numbers as input arguments and returns a rational number in the form of a/b. here a is the numerator and b is the denominator ... Read More

1K+ Views
In this article, we are going to learn about how to create an interface using golang programming INTERFACE − In the go language, an interface is a custom type that is used to specify one or more method signatures. An interface is abstract i.e. we cannot create an instance of the interface but we can create a variable to the interface type and assign this variable to the struct or class that has methods needed by the interface. Syntax type interface_name interface { // method signatures } Example 1 To define an interface first we need ... Read More