GoConqr has a new look! Let us know what you think.

Module 3 of 9 · Text

Sobrecarga de Métodos

Anthony Anthony

Es cuando se coloca métodos con el mismo nombre pero con distintos parámetros 

namespace Proyecto
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //TODO: Números aleatorios
            Random ran = new Random();
            Console.WriteLine(ran.Next());

            //Devuelve valores de 0 al 5
            Console.WriteLine(ran.Next(6));

            //Devuelve valores en rango de esos dos números
            Console.WriteLine(ran.Next(2,15));

        }
    }
}

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?