Great explanation bas I think you know what I think about this one :D A simple constructor that gives attributes default values and then you modify the ones that you need is what I'd do. struct House { ... }; struct House house_make(); // makes a house with default values struct House house_make_rich_people(); struct House house_make_poor_people(); ---------------- struct House myhouse = house_make(); myhouse.rooms = 5; struct House fancy = house_make_rich_people(); struct House sha7at = house_make_poor_people(); So yeah builder/factory is unnecessary complexity imho
Your explanation is superb and so neat 💪🏾
Keep up the good work
Keep up the good work SEKABBB!!😍
very nice videos,.. Keep it up
Nice ❤
Great explanation, this channel deserve much much more..
Keep going sir
You make it very clear.
Nice
nice video keep going =D
Great explanation bas I think you know what I think about this one :D
A simple constructor that gives attributes default values and then you modify the ones that you need is what I'd do.
struct House {
...
};
struct House
house_make(); // makes a house with default values
struct House
house_make_rich_people();
struct House
house_make_poor_people();
----------------
struct House myhouse = house_make();
myhouse.rooms = 5;
struct House fancy = house_make_rich_people();
struct House sha7at = house_make_poor_people();
So yeah builder/factory is unnecessary complexity imho