Posts Tagged ‘cprogramming’

Concept of Friendship in C++

Written by Hamza. Posted in C++

friendship in C++

Our progress in this series of articles on object oriented programming in C++ has been deliberately slow so that readers would have time to grasp the basics of classes and their objects before moving on to their practical usage. Let us pick up the pace a little bit. We will now move to the concept of friendship in c++. From here we can go on to more advanced concepts like inheritance and polymorphism.

Operator overloading in classes in C++

Written by Hamza. Posted in C++

operator overloading

After a lengthy break, i’m back with my series on object oriented programming in C++ made easy for beginners. As you may recall, I had started this series as a sort of  a basic guide for programmers who were just delving into the basics of OOP in C++. I hope by now all of you understand the basic concepts behind classes and how they are used. All of that prior knowledge will be required, as today I am going to be talking about the concept of operator overloading in classes in C++.

Linked Lists using classes

Written by Ali. Posted in C++

Linked Lists using Classes

Hello everyone and we’re back again with yet another post on Linked Lists series. This time, we introduce to you a much wider concept of linked lists that is more feasible and easy to implement; implementation of Linked Lists using classes.

Enumeration Types and enum in C++

Written by Ali. Posted in C++

enum in c++

Enumeration in C is a convenience feature added to make coding easy. By use of enumeration, or more appropriately enum, a lot of hassle is simplified and code can be made easier to understand. Enum is a user-defined type used to store set of named constants called as enumerators. enum is a reserved keyword in C . 

Typecasting Pointers in C++

Written by Ali. Posted in C++

Typecasting as earlier discussed is a powerful tool and demands extreme care when being handled. Typecasting pointers in C has to be dealt with the same level of care. The language allows typecasting to be handled efficiently even by the pointers, allowing a very versatile usage of pointers and making the code user efficient. Meanwhile, the pointers as discussed earlier can be very tricky to handled at times and a single mistake can send the code crashing or possibly memory leak.