0
Under review

Whats the main difference between feature envy and inappropriate intimacy?

PedroΒ La Rosa D. 6 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ 6 Π»Π΅Ρ‚ Π½Π°Π·Π°Π΄ β€’ 2
Hello, I've reread about Feature Envy and Unapropriate Intimacy code smells many times comparing both to see the differences.

These two code smells are soo similar each other and I can't see the actual differences between them.  I'm a little bit stock with this topic.

Can anyone explain it to me, please?

Fine, OK. I think I got it. 

Unapropriate Intimacy is about a class consuming data that should be encapsulated from another class.

and Feature envy is about a class that mainly uses another class' public data in its methods.

Am I right?

БСрвис ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΈ ΠΊΠ»ΠΈΠ΅Π½Ρ‚ΠΎΠ² Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ Π½Π° ΠΏΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΠ΅ UserEcho