must declare a body because it is not marked abstract, extern, or partial

Rastaberry

Rooster 4 president 2k14
Dec 3, 2010
247
29
So I've been busy on a development and I tried to debug the emulator but it's showing this error:
must declare a body because it is not marked abstract, extern, or partial:
Here's the code:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Kernel
    {
        public static void init();
    }
}

I'd be glad to get this fixed and I'd be glad to move on with the emulator so please help me out with this brothers and sisters!

Copy the code and if you want fix it for me and post it so I'm able to move on.
 

Pro

Insane in the midbrain.
Oct 14, 2010
194
37
You need to add a return value like this:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Emu
{

    class Environment
    {
        public static bool init()
        {
         

            return false;
        }
    }

}

This was pretty easy...
 

Adil

DevBest CEO
May 28, 2011
1,278
718
You need to add a return value like this:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Emu
{

    class Environment
    {
        public static bool init()
        {
        

            return false;
        }
    }

}

This was pretty easy...
Not necessarily.. You just need to implement a method body in non-abstract classes.
 

Users who are viewing this thread

Top