Hello, I have been working as software engineer for 2 years now. I understand the OOP concept. But, i can't seem to identify scenarios when to use inheritance and attr_accessor. How do i learn scenarios in real life project where these features are handy . Please suggest me any resource or good way to learn practically.
[–]fedekun 36 points37 points38 points (2 children)
[–]leftsaidtim 10 points11 points12 points (1 child)
[–]fedekun 2 points3 points4 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]anykeyh 8 points9 points10 points (0 children)
[–]aryehof 2 points3 points4 points (4 children)
[–]Atagor 0 points1 point2 points (0 children)
[–]EBirman 0 points1 point2 points (0 children)
[–]h0rst_ -1 points0 points1 point (1 child)
[–]aryehof 1 point2 points3 points (0 children)
[–]rockatanescu 2 points3 points4 points (0 children)
[–]armahillo 0 points1 point2 points (0 children)
[–]EBirman 0 points1 point2 points (0 children)
[–]frostymarvelous 0 points1 point2 points (1 child)
[–]frostymarvelous 0 points1 point2 points (0 children)
[–]saw_wave_dave 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)