I need to overload some operators when called using double types. To do this, I create a class MyDouble, which inherits from Double. MyDouble looks something like this:
class MyDouble : Double { Double value;
I want to abstract the value
property from the user so that it can be used as a double. Basically I want the user to be able to do this:
MyDouble a = 5;
I do not want the user to specifically target the value
property. Is it possible? How can i do this?
source share