120. Copy Semantics-II

Question.5

A developer writes a class that holds only value types:

class SensorReading {
   int id;
   float temperature;
   uint32_t timestamp;
   // No destructor, no copy constructor, no operator=
};

Is this class correct?

Need Help? Refer to the Quick Guide below

Select Answer