Sobes.tech
Junior — Senior

Differences between a =default constructor and an empty body constructor

livecode

Task condition

What is the fundamental difference between declaring the constructor CD() as =default and defining the constructor CD1() with an empty body {}.

class CD {
    CD() = default;
};

class CD1 {
    CD1() {}
};