You might need to show a bit more code. Assuming those are member functions of a class since Re() and Im() don't take in any arguments, you'd need to do something like
1 2 3 4 5 6 7
int main()
{
Kompleks n(3, 4); // Constructor, makes 3 + 4i
double m = n.Moduo();
Kompleks n2 = ~n;
}