Calling methods within methods
i have 2 methods , need change 1 displays value depending on method. 1 of methods string , 1 boolean. method getspeech needs determin weather or not output method isbig size greater 50.
public string getspeech()
{
dogspeech = "hello. " + breed + ". " + barksound;
return dogspeech;
}
public void setsound(string barksound)
{
this.barksound = barksound;
}
private bool isbig(int size)
{
bool size1;
if (size < 50)
{
size1 = false;
}
else
{
size1 = true;
}
return size1;
}
any appreciated
thank time
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment