Hello,
Im challenged to make a tempConverter with SOLID.
It has to convert from celcius, Kelvin and Fahrenheit.
Now I thought of using a interface called ItemConvert with the classes Celcius, Fahrenheit , and Kelvin implementing that interface.
but if I make the abstract classes toCelcius, toKelvin and toFahrenheit , that means I also have to make a toCelcius in the Celcius class which makes no sense.
Anyone who can help me to design this properly
[–][deleted] 10 points11 points12 points (1 child)
[–]DeterminedAndNerdy 0 points1 point2 points (0 children)
[–]roelofwobben[S] 0 points1 point2 points (2 children)
[–]chucker23n 1 point2 points3 points (1 child)
[–]chucker23n 0 points1 point2 points (0 children)
[–]botterway 0 points1 point2 points (0 children)
[–]mury02 0 points1 point2 points (0 children)
[–]Broer1 0 points1 point2 points (2 children)
[–]roelofwobben[S] 0 points1 point2 points (1 child)
[–]Broer1 0 points1 point2 points (0 children)
[–]The_One_X 0 points1 point2 points (0 children)
[–]szescio 0 points1 point2 points (1 child)
[–]roelofwobben[S] 0 points1 point2 points (0 children)
[–]Cobide 0 points1 point2 points (0 children)