C++ goto statement

The goto statement is use to jump unconditionally from one statement to another in a program. There are two types of jumps one in forward jump and second is backward …

C++ Conditional operator statement

The conditional operator statement is used with the combination of ? and : and this is known as conditional operator. Syntax:                         conditional expression ? expression1 : expression2 The conditional …

Switch statement

The problem in if-statement is the complexity to read and follow. Even it may be confuse the programmer who designed it. The switch statement tests the value of the variable …

if statement

if statement: The if statement is use to control the flow of the execution of statement. If the expression is true then it transfers the control to the particular statement. …

Branching statements

The branching statements are also called decision making statement which is used to see whether a particular condition has occurred or not and then tell the compiler to execute certain …

First C++ program

/* Program to print something. */ #include<iostream.h> #include<conio.h> void main() { /* printing hello*/ cout<<“hello”; getch(); } Description: this is our first c program which printing the hello. In first …

Dynamic binding

Dynamic binding is also achieved in oops programming. Dynamic binding means that the code associated with a given method call is not known until the time of the call at …

Message passing

Message passing: As people communicate with each other objects can also communicate with one another by the concept of message passing. A message for an object is a request for …

Abstraction

Abstraction refers to the act of representing essential feature without including the background details or explanation. A very important rule of abstraction is we filter out the common functionality of …

Inheritance

The most significant advantage of object oriented programming is the reusability of the code. This reusability achieved by a mechanism called inheritance.  Inheritance is also refer to as “is-a” relationship. …