Object oriented programming deals with partitioning the entire programs into groups using data structures called 'objects' and assigning attributes and methods to them.Object oriented programming consists of two things: 1) classes 2) objects CLASSES: A class is a group of attributes of the same kind. it is used to impart object orientedness to a program. for example,pen, pencil, rubber etc belongs to a class stationary.A class is a blueprint for a data type. it cant be implemented itself, we...
Read more

Variables are certain data types which can store values during execution of the program.The values stored in variables can be changed during the program execution.For eg. a,b,d etc. Declaration of Variables In order to create use of a variable in C++, they need to first declare it specifying which data type they need it to be. The syntax to declare a new variable is to write the specifier of the specified data type (like...
Read more

SAMPLE PROGRAM FOR BEGINNERS // sample program #include <iostream> using namespace std;  int main ()  {   cout << "This is my first program";  return 0;  }  // sample program This is a comment line. All lines starting with slash signs (//) are  comments and don't have any impact on the behavior of the program. The computer programmer will use them to incorporate short explanations...
Read more

Powered by Blogger.