All corejoomla components uses Joomla shareable layout system so that they can be used anywhere with less configuration.
Please read more about shareable layouts here:
To override any component layout:
- Identify the layout file you would like to override
- Copy the layout files to your override directory
- Make modifications and you are good to go.
Joomla will search the overrides in specific folders in the order below. Whichever finds it first, it will use it.
 => /templates/yourtemplatename/html/layouts/com_componentname  => /components/com_componentname/layouts  => /templates/yourtemplatename/html/layouts  => /layouts
So, for example, if you would like to override the layout file components/com_communityanswers/layouts/default/toolbar.php; copy the toolbar.php file to /templates/yourtemplatename/html/layouts/com_communityanswers/default/toolbar.php and do your modifications.