Factory Pattern. 1  Factory pattern is a creational design pattern. 2  Idea of the factory patterns is to localize the object creation code. 3  This prevents disturbing the entire system for a new type introduction.
The average maternity leave in the U.S. is about 10 weeks, but about half of new moms took at least five weeks, with about a quarter taking nine weeks or more, figures showed.
For each day your baby has to stay in hospital beyond the first 7 days after the birth, you can extend your maternity leave by the same number of days, e.g. if your baby stays in hospital for 10 days in total, your maternity leave is extended by 3 days. This extension of maternity leave cannot exceed 24 weeks.