class A{
public:
A(){};
static long getTime();
};
aspect TimeAspect{
};
Assume that you want TimeAspect to introduce a timestamp field (type long)
to a class A and you want to set the timestamp for each instance of A using
A::getTime() when its constructor is invoked. What would TimeAspect look
like?
- Bob