+ 1

reusability is one of the major properties of OOPs. How it is implemented in C++?

please explain as an advantage of oops.

3rd Dec 2016, 5:59 PM
Tanmeya
Tanmeya - avatar
2 odpowiedzi
+ 1
Reusability never was a property of OOPs. Reusability is something which is included in all major languages like HTML, Java, C, etc. by using functions irrespective of if the language follows OOPs protocol. The major properties of OOPs are: 1. Inheritance 2. Polymorphism 3. Abstraction 4. Encapsulation Please do hit 'like', if you find the answer helpful!
3rd Dec 2016, 6:16 PM
Rahul Soni
Rahul Soni - avatar
+ 1
reusability is not a property of oop yes it is advantage instead of writing same methods and properties we make a blueprint called class for example class named dog with properties of name breed height methods run jump bite now from this blueprint you can make various instances of it that means various objects now there is no need of making methods properties to each of these rather just change some methods thus it has code reusability
3rd Dec 2016, 7:38 PM
Sandeep Chatterjee