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

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'