Question: Write a C# programs to: Declare a class Swap with the following members: ( 3 0 points ) two private member variables of integer type;
Write a C# programs to:
Declare a class Swap with the following members: points
two private member variables of integer type;
one member function to swap the integers between the two member variables the arguments should be by reference
a main function to:
read two integers from the keyboard and assigned them to the object of class Swap points
call the objects member function to swap the two integers. points
display the values of the objects member variables on the screen. points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
