Over-riding Functions in C++

Over-riding functions in C++

In this tutorial you will learn: 1. What is over-riding of a function? 2. Why to over-riding a function? 3. How to over-ride a function in a program? 4. Basic C++ syntax What is meant by over-riding a function? By over-riding a function it means that we add some extra functionality in the function which is present in the derived class and that function has the name same as that of the base class function.

Operator Overloading in C++

Operator Overloading in C++

In this part you will learn: 1. What is Operator Overloading? 2. How Operator Overloading is useful? 3. How to use Operator Overloading in a Program? 4. C syntax What is Operator Overloading? Operator overloading is the way by which we give the already existing operators like +,-,*,/,>) and extreme extraction operators (Operator Overloading Basic Step: Open Dev C++ then File > new > source file and start writing the code below.

Prototyping in C++

Introduction: This tutorial is on how to use Function Prototyping in C/C++. Function File: Here is a basic function file which, after running the 'int main' function, runs a custom function named 'calculate' which returns an integer and is output to the screen.
  1. #include <iostream>
  2.  
  3. using namespace

MD5 in PHP [Why? How? Explained]

Introduction This tutorial is on using MD5 encryption in PHP. Why MD5? MD5 is built in to PHP and is only a one way encryption. This means that even if someone was able to gain access to an encrypted md5 string, called an 'MD5 Hash', it is unlikely they would be able to convert the hash back in to the original plain text string. Decryption: Decryption in most cryptography languages essentially work by using the reverse algorithm to the encryption algorithm used by the cryptography method in question.

Inheritance in C++

Inheritance in C++

In this tutorial you will learn: 1. What is inheritance? 2. What are different types of inheritance? 3. Why to use inheritance? 4. C++ syntax What is inheritance? A form of software reuse in which you create a class that absorbs an existing class’s data and behavior and enhances them with new capabilities.

Arrays as Class Data Member

Arrays as Class Data Member

In this tutorial you will learn: 1. How to make Arrays as Class Data Member? 2. Why to use arrays as attributes of the class? 3. How to make array of objects? 4. C++ syntax Arrays can also be the data members of the class, just like integer, float and other data type integers we can also define an array as the data members. Arrays are used as data members because if the user requires that the object contain a lot of information which is to be saved in the array then he will use array as the data member of the class.