If child is active add class to parent in customWalker

By default, WordPress applies ancestor classes to the parents of active items. All you have to do is target them via CSS:

.nav-menu li.current_page_ancestor > a,
.nav-menu li.current-menu-ancestor > a {}

This code sample implies that your menu has the .nav-menu class. This will work with a navigation menu and with the page menu fallback.