Ternary Operator in C++

In C++, ternary operator allows executing different code depending on the value of a condition, and the result of the expression is the result of the executed code. The ternary operator uses 3 operands. It evaluates a condition and after that chooses one of its two...

Polymorphism in C++

Simply speaking, polymorphism is the ability of something to be displayed in multiple forms. Let’s take a real life scenario; a person at the same time can perform several duties as per demand, in the particular scenario. Such as, a man at a same time can serve as a...

The C++ Modulus Operator

Introduction to Modulus When we divide two integer numbers we will have an equation that looks like the following: A/B = Q Remainder R where A is the dividend B is the divisor Q is the quotient R is the remainder Sometimes, we are only interested in what the remainder...

Introduction to C++ – Lecture Notes

This post contains lecture notes of “Introduction to C++” course which is taught at MIT OpenCourseWare. This is introductory course to the C++ programming language. Anyone with little or no programming experience can equally take this course. However,...

An Introduction to C++

The ACM Student Magazine has a series of courses to teach C++ and java called “Objective Viewpoint”. The tutorials touch on many aspects of object-orientation. The word object has surfaced in more ways than you can count. There are OOPLs (Object-Oriented...

C++ Operator Overloading Guidelines

Google Code University website provides tutorials and sample course content so CS students and educators can learn more about current computing technologies and paradigms. In particular, this content is Creative Commons licensed which makes it easy for CS educators to...

More on Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

C++ Memory Management

By George Belotsky Published on Linux DevCenter (http://www.linuxdevcenter.com/) http://www.linuxdevcenter.com/pub/a/linux/2003/05/08/cpp_mm-1.html Everyone knows that memory management is a difficult and dangerous chore in C++. This series of three articles will show...

What’s new in C++?

As we begin the study of C++ and object oriented programming, a few commentsare in order to help you get started. Since the field of object oriented programming is probably new to you, you will find that there is a significant amount of new terminology for you to...

Encapsulation

Object oriented programming is a new way of approaching the job of programming. Object oriented programming will seem very unnatural to a programmer with a lot of procedural programming experience. This tutorial is the beginning of the definition of object oriented...
Page 1 of 3123