Program to print sum of two numbers using class in C++.
In this Artical we learn how to Add two numbers by using class in c++.This is simple program and easy to understand.
Let’s open turbo c/c++ and write the following code.
long int a,b,c;
void bca :: input()
cout<<”enter first number: “;
cout<<”enter second number: “;
void bca :: output()
Now, Run the program and see output: