No, as Khurkil said, despite the collision of names deduced by "objects" in object-oriented programming, OOP functions are not related to category theory functionals. A better match with OOP would be to rename OOP classas categorywell as type conversion as functors. Something like that:
category Shape;
category Rectangle : forgetful functor Shape;
category Polygon : forgetful functor Shape
{
functor Polygon( Rectangle & );
};
instead
class Shape;
class Rectangle : public Shape;
class Polygon : public Shape
{
implicit Polygon( Rectangle & );
};
, , , , , , .