as i know class type parameter is always passed as reference. but whenever i pass a class type variable which is class member as parameter. it always works like call by value.