History of C++

The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity to work with was a language called Simula, which as the name implies is a language primarily designed for simulations. The Simula 67 language - which was the variant that Stroustrup worked with - is regarded as the first language to support the object-oriented programming paradigm. Stroustrup found that this paradigm...............


(0)
By Chirag   Shah  in C++  on 2/20/2015 9:45:29 PM   Read more...


what is polymorphism?

 

Polymorphism

Polymorphisms menace the ability to take more then one form. The operation may perform different behavior in different instance. The behavior depends upon the types of data used in the operation.

For example.. Consider the operation of addition, for two numbers the operation will generate sum in the operant are string then the operation would produce therd string by concatenation.

      (0)
By suraj   dube  in C++  on 7/2/2015 1:08:38 AM   Read more...




(0)
By divyesh   dhodia  in C++  on 7/2/2015 5:04:15 AM   Read more...


Benefits of object oriented programming (oop)

1) using interface we can eliminate redundant code an extained The use of existing class 2) we can bild programme from the standard working modules that communicate with 1 another weather Than having the start writing the code from search This lives to saving of development time & higher productivity 3) the principle of data hiding helps the programmer to bild secur programme that can not we access by code in the other Parts of the programme 4)...............

(0)
By divyesh   dhodia  in C++  on 7/2/2015 7:47:48 AM   Read more...

Difference Between Procedure Oriented Programming  (POP) & Object Oriented Programming  (OOP)


Procedure 

Oriented 

Programming 

Object 

Oriented 

Programming 

(1)it gives importance to

on doing things  (Algorithms). 

 (1)it gives more importance to

data rather then procedures. 

(2)Large programs are divided 

into Smaller progra...............


(0)
By Ankit   Chaudhari  in C++  on 7/3/2015 2:34:41 AM   Read more...


Characteristics of procedure oriented programming

  1. It gives more important to on doing things (algorithms).

  2. Large program are divided into smaller programs known as functions.

  3. Most of the functions share global data.

  4. Data move openly around the sys...............


(0)
By savan   prajapati  in C++  on 7/3/2015 12:49:02 AM   Read more...


Characteristics of Object Oriented Programming

1.     It gives more important on data rather than procedure.

2.     Programs devided into what are known as object.

3.     Data structures are design such that they categorized the object.


(0)
By pankaj   faliyachi  in C++  on 7/4/2015 12:59:37 AM   Read more...


Encapsulation

The wraping up of data and function into a single unit(called class)is known as encapsulation.

DATA encapsulation is the most striking feature of a class.the data is not accssible to the outside world.and only those functions which are wrapped in the class can access it.there functions provide the interface between the objects data and the program this insulation of the data from direct access by the program is...............


(0)
By Sarang   Bhavsar  in C++  on 7/7/2015 2:26:04 AM   Read more...


what is data abstraction ?

abstraction refer to the act of representing accentual features without including the back round the detail or explanation.

(0)
By nayan   shimpi  in C++  on 7/9/2015 11:50:08 PM   Read more...


<p>what is manipulator?</p>

<p>manipulator are operators used to format the data display the most common used manipulator are endl setw.</p>

(0)
By bhavik   jadav  in C++  on 7/10/2015 12:20:47 AM   Read more...


Memory Management Operator

1)NEW the new operator allocate sufficient memory to hold a data object of type data_type any return the address of the object.the pointer_variable hold the address of the memory space allocated. Syntax:- pointer_variable = new data_type; pointer_variable = new data_type(value); pointer_variable = new data_type[size]; 2)DELETE When the data object is no longer needed it is destroyed to release the memory space to reuse. The above statement it is used to release memory ...............

(0)
By dhaval   chaudhari  in C++  on 7/14/2015 5:53:48 AM   Read more...


<p>what is enum? Give example?</p>

<p>an num is a string object with a value chosen from a list of permitted values that are enumerated explicitly in the column specification at table creation time.</p> <p>#include&lt;iostream.h&gt;</p> <p>enum colour</p> <p>{</p> <p>red,</p> <p>green=10,</p> <p>blue=11,X</p> <p>};</p> <p>void main()</p> <p>{</p> <p>enum colour c1=green;</p> <p>cout&...............

(0)
By mahendra   suryavanshi  in C++  on 7/10/2015 12:55:19 AM   Read more...


What is structure ?

Definition:-

"C provides special kids of variables called structure"

C structure allows you to wrap related variable that has different data types into a single variable.

A structure can contain any valid data types such as int,char,float,array,pointer, or even other structures.

...............


(0)
By Patel   Krupal  in C++  on 7/24/2015 10:58:32 AM   Read more...


object as a function argument

#include<iostream.h>
#include<conio.h>
class meter
{
    int m;
    public:
        void get(int a)
        {
            m=a;
        }
        void disp()
        {
       &...............


(0)
By varsha   jain  in C++  on 9/2/2015 2:44:14 AM   Read more...


write a program to add value of two diffrent classe.

#include<iostream.h>
#include<conio.h>
class meter;
class km;
{
    int K;
    public:
        void get(int a)
        {
            k=a;
        }
        void disp()
        {
   &nbs...............


(0)
By bhoomi   panchal  in C++  on 8/21/2015 2:38:25 AM   Read more...


what is friend function? explain friend function with example

c++ introdues two new types of the function namely friend function and virtual function.they are basically introduced to handle some spcific task related to class object.we have been emphasizing throught this chapter that the private members can not be accessed  outside  the class .non member function can not have an acess to the private data of a class

To make an outside function “friendly” to class ,we have to simply declare this function as a friend  of t...............


(0)
By Alpa   vatani  in C++  on 9/1/2015 2:42:37 AM   Read more...


returning class object

#include<iostream.h>
#include<conio.h>
class KM
{
    int k;

    public:
        void get()
        {
            cin>>k;
        }
        void get(int x)
        {
    &nb...............


(0)
By rajal   solanki  in C++  on 9/1/2015 2:41:22 AM   Read more...


create a class string using danamic constructer and impliment join function to concate two string and equals function

to match two sting

#include<iostream.h>
#include<conio.h>
#include<string.h>
class string
{
       char *str;
       int length;
      public:
          string()
          {
            length=0;
        ...............


(0)
By varsha   jain  in C++  on 9/2/2015 2:44:02 AM   Read more...


create a class string using dynamic constructor and overload + operator  to concate two string and overload == operator

to match two sting

#include<iostream.h>
#include<conio.h>
#include<string.h>
class string
{
       char *str;
       int length;
      public:
          string()
          {
            length=0;
        ...............


(0)
By varsha   jain  in C++  on 9/2/2015 2:46:37 AM   Read more...


Default  argument

Defination:

          C++  allows us to call a function without specifying all its arguments. In such cases, the function assigns a default value to the parameter  which does not have a matching argument in the function call. Default values are specified when the function is declared. The compiler looks at the prototype to see how many arguments a function us...............


(0)
By urvish   gamit  in C++  on 9/12/2015 2:17:41 AM   Read more...