i can do this job by instancing classes but i don't know how to do it with static classes
here is my code:
using System;
static class VoidFunkcija
{
public static void Bezveze()
{
Console.WriteLine("Bok");
}
}
static class IntFunkcija
{
public static int Bezveze2(int a, int b)
{
int c;
c = a + b;
return c;
}
}
static class Glavna
{
static void Main()
{
Bezveze();
int f;
int g;
f = Convert.ToInt32(Console.ReadLine());
g = Convert.ToInt32(Console.ReadLine());
Console.Write(Bezveze2(f, g));
Console.ReadKey();
}
}
and debugger says that Bezveze and Bezveze2 functions doesn't exist in the current contextwhat did i missed???


Sign In
Create Account


Back to top









