Hi,

Say I have a class, and within the class a method, how do you determine if you declare the method public or private? I always thought you're suppose to declare them private, but, if so, when you want to call that method from another class, you've got to have a public method to call the private one?
I just want to make sure i'm doing everything the right way.
Code:
public class foo
{
	public foo()
	{
	
	}
	
	private string yak(string strVar)
	{
		// do something
	}
	
	// now i want to call the method from another class, therefore I have to create a public method to call the private?
	
	public string yakbar(string strSo)
	{
		return yak(strSo);
	}
}
Any tips? Thanks