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.
Mothers must still take the initial two weeks after birth, but they can then cut their maternity leave short and exchange it for shared parental leave. Both parents will then have a flexible choice of how to split up the rest of the leave entitlement - of up to 50 weeks. For example, if a mother ends her maternity leave after the 12 weeks following the child's birth, that leaves 40 weeks of leave. She chooses to take 30 weeks and so her partner can take the other 10 weeks. Alternatively, the couple may choose to take 20 weeks of leave at the same time or at different times.