How to attachInterrupt inside constructor?

I am making a class for a color sensor, and wish to call attachInterrupt() right as it is created. What is the correct syntax?

class ColorSensor {
 private:
  void UpdateISR();
 public:
  ColorSensor(int outPin) {
   attachInterrupt(digitalPinToInterrupt(outPin), this->*UpdateIRS, CHANGE);
  }
};

You can't use attachInterrupt() with an instance function. You can use it with a static (class-level) function.

Is there a way to attach an interupt in the same time while creating a class?

While a class is created? No. You can attach an interrupt to a static member function in the constructor when an instance is created. But, you should set a (static member variable) flag so you only do the attachInterrupt when the first instance is created.

Or, you can call a static member function that does the attachInterrupt to a different static member function.

If you create a global instance of the object, the constructor gets called before the Arduino core is initialized. That is why many object libraries have a '.begin()' member function. You could do that.