What is the object oriented way to become wealthy in this world?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

What is the object oriented way to become wealthy in this world??

My answer is inheritance. Let me hear your answers

6th Feb 2017, 5:13 PM
Baba Yunus Abdul Yekin
Baba Yunus Abdul Yekin - avatar
1 Answer
+ 2
Criminal person = new Criminal(); Recommended individual = new Recommended(); Lucky guy = new Lucky();//very rare If (guy.luckPersists()){ guy.findRecommendation(); }else{ guy.getCriminal(); } Worker honestHardWorker = new Worker(); honestHardWorker.finalize(); System.out.print("get rich... you can dream of it!!!");
6th Feb 2017, 6:28 PM
seamiki
seamiki - avatar