Answer Posted / jayasrinivas.donavalli
class swap
{
public:
int a,b;
void swapp()
{
a = a + b;
b = a - b;
a = a - b;
}
};
class swap s1.
s1.swapp();
cout<<a<<b;
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is polymorphism and example?
explain sub-type and sub class? atleast u have differ it into 4 points?
Where is pseudocode used?
What are the 3 principles of oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why do we use class in oops?
Why is abstraction needed?
What are oops functions?
What is overriding in oops?
State what is encapsulation and friend function?
Can we create object of abstract class?
Prepare me a program for the animation of train
What are the 5 oop principles?
What is difference between data abstraction and encapsulation?
write a programe to calculate the simple intrest and compund intrest using by function overlading