If you have an object of some class, type in some method which you want to create, then do a Create from Usage, then the method will get added to the bottom of the class definition, complete ignoring any visibility (i.e. private, public) declarations you have. It should put the new method in a public section of the class declaration. Here is an example:
class A
{
public:
void SomeMethod();
private:
int m_SomeData;
};
void main()
{
A aObject;
// New method we want to create from usage
a.NewMethod();
}
Now we right click on the "NewMethod" token above and select "Create from Usage". What we see is the following:
class A
{
public:
void SomeMethod();
private:
int m_SomeData;
void NewMethod();
};
Rather than:
class A
{
public:
void SomeMethod();
void NewMethod();
private:
int m_SomeData;
};
I am using build 1738 on Visual Studio 2005, SP1.
Thanks