+ 4
What is the difference between declaring two classes as friend and allowing a class to inherit privately from another class?
2 odpowiedzi
+ 2
Inherit from another class avoid Code redundency and you can use the Variables and Atrributes from the class you derive from.
When you declare two identical Classes seperately, so you will probably all Variables and Attributes declared exact the same way.
That produces unnecessary Code,Time and Memory.
0
how can add other language in weapon challenge