Posts Tagged ‘object oriented programming’

Overloading Pre Increment Operator(++)

Written by Raza. Posted in C++

pre increment happening

C supports a number of arithmetic and logical operators. Post and Pre Increment operators are one of these arithmetic operators. These incremental operators add up one to existing value of the variable.The difference between post increment and pre increment is obvious from their name: post increment is placed after the variable and pre increment is placed before the variable. In principle, there is a slight difference in their behavior which I shall explain to you in this article.


Common Errors and Mistakes in Object Oriented Programming C++

Written by Ali. Posted in C++

Hello everyone. This is our second post to the common C++ errors and mistakes series. Today, we’ll get to explore some more mistakes that many programmers make, rather unintentionally! These common errors would be in the object oriented paradigm as programmers use it more frequently and get used to it with more effort and hard work. 

Using Appropriate Constructor and Avoiding Programming Errors

Written by Raza. Posted in C++

programming errors causing head ache

In Object Oriented Programming, some Programming Errors happen very often. They include the inappropriate call to the constructor, illegal initialization state of objects and unintentional assignments and errors, to name a few. Eliminating these programming errors is very important to proceed in the right direction in the program. I shall explain them step by step to you in this post. Kindly Have a look at the following code.  

Overloading Extraction Operator (>>)

Written by Raza. Posted in C++

Data Extraction from Computer

The extraction operator is used to take input directly in objects. In Object Oriented Programming, we want everything to be as simple and close to built in data types as is possible. The concept of overloading various operators is one facet of this need. For input and output, we especially want ease and smooth syntax to flow throughout the program.We saw how to overload insertion operator for taking output in our program. This time we shall see how to overload the extraction operator (>>) for taking input directly in an object.  

Efficient Programming: Saving System Resources in Your Program

Written by Raza. Posted in C++

Efficient Programming Techniques

Programming is not a Big Deal. The Big Deal is Efficient Programming. Efficient programming is a very comprehensive term which includes writing a code which uses as less system resources as possible, is free from most of the errors  and is capable of handling all kinds of situations. I shall show you first a piece of code and then explain to you some of these aspects for writing an efficient code. Kindly follow the following piece of code.