Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Refactoring - encapsulate function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Suma
New Member

6 Posts

Posted - Jul 30 2013 :  08:03:16 AM  Show Profile  Reply with Quote
Functions are often created in derived classes which encapsulate base class functionality. E.g.

class Base
{
public:
virtual void OnEvent(Event a) {}
};

class Derived
{
};

Refactorization could offer to create following function in the derived class:

virtual void OnEvent(Event a) override
{
return Base::OnEvent(a);
}

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jul 30 2013 :  09:44:53 AM  Show Profile  Reply with Quote
Are you aware of the Implement Interface refactoring command? This is designed to help you with situations like this:

http://www.wholetomato.com/products/features/implementInterface.asp

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000