Swapping and mapping of 2 class members dynamicallyHi
I have 2 classes, class A class B.
Class A is having 2 members say int a and int b
Class B is having 1 member say int y
now i want some logic so that i can save mapping of members of both classes like int a of class A will be mapped to int y of class B.
by calling that logic method i can swap the values of these members dynamically (NO HARD CODING REQUIRED)
Please provide code for this