I want to implement the Factory class but, I have a question regarding the relationship between RestTemplate and PortFolioManager. I went through the Design Pattern notes on tutorialspoint and was able to understand the logic and use but could not convert the same for PortfolioManagerFactory.
Any push in the right direction will help. Thank you.