⸻ Ban DHMO 🇦🇺 ⸻@aussie.zone to Programmer Humor@lemmy.mlEnglish · 3 months agoThe C++ learning processaussie.zoneimagemessage-square118fedilinkarrow-up1446arrow-down15file-text
arrow-up1441arrow-down1imageThe C++ learning processaussie.zone⸻ Ban DHMO 🇦🇺 ⸻@aussie.zone to Programmer Humor@lemmy.mlEnglish · 3 months agomessage-square118fedilinkfile-text
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up0·2 months agoHow do you implement an interface in C++ without an abstract class?
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up0·2 months agoAsk Bjarne to add interfaces enough many times until he gives in. On a more serious note, I’m not exactly sure what the best C++ practice is. I guess you just have to live with abstract classes if you really want interfaces.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1·2 months agoAn abstract class with no member variables serves the same purpose in C++.
How do you implement an interface in C++ without an abstract class?
Ask Bjarne to add interfaces enough many times until he gives in.
On a more serious note, I’m not exactly sure what the best C++ practice is. I guess you just have to live with abstract classes if you really want interfaces.
An abstract class with no member variables serves the same purpose in C++.