C++ Objects

Objects are used to access the class members. The creation of an object is simple and this process is known as instantiating an object. And to create an object we …

C++ Methods

The functions are called as methods in java. And methods are helps to access the instance-variables and provide functionality on the data as required. And the methods can be declared …

Classes and objects

All the functions are performed in the java with the help of classes and objects. Thus java is called a true object oriented programming language.  Class A class is encapsulates …

C++ one dimensional Array

The one dimensional array is the simplest form of the array. And is used for the multiple values in a single variable. Declaration syntax:   data-type  array-name[ ]; e.g:      int student[ …

Array

The problem with the simple data type is it can only save one value at a time, suppose we want to save the roll number of the all students of …

c++ for loop

The for loop is also entry-controlled loop. Syntax: for(initialization; condition; increment/decrement) { Body of loop } Initialization: in this part of the loop the variable is initialized such as i=0; …

C++ do-while

In while loop the condition is evaluated first and then executes the body of loop and if the condition is not satisfied even at the very first attempt the body …

C++ while loop

while loop is the simplest form of loop, and it is entry controlled loop statement. Syntax: while(test condition) { Body of loop } At the first, condition is evaluated and …

looping statements

 looping statements In looping statement a sequence of statement executed repeatedly until some conditions for termination are satisfied. The condition for the loop is tested and if satisfied then it …