2 years ago

It's been 6 months since the last poll. Again. That's what I call stability.

What will be output to the console when the Start() method is executed?

Choose the answer below!

(Full code in the article)


SampleScript.cs

		
			using UnityEngine;

namespace Assets.Samples.Sample3
{
    public class SampleScript : MonoBehaviour
    {
        private void Start()
        {
            Base overrideExample = new OverrideExample();
            Base hidingExample = new HidingExample();

            print(quot;{overrideExample.Name} {hidingExample.Name}");
        }
    }
}
		
	

Base.cs

		
			namespace Assets.Samples.Sample3
{
    public abstract class Base
    {
        public virtual string Name => nameof(Base);
    }
}
		
	

OverrideExample.cs

		
			namespace Assets.Samples.Sample3
{
    public class OverrideExample : Base
    {
        public override string Name => nameof(OverrideExample);
    }
}
		
	

HidingExample.cs

		
			namespace Assets.Samples.Sample3
{
    public class HidingExample : Base
    {
        public new string Name => nameof(HidingExample);
    }
}
		
	
  37 votes Voting finished



2 comments

Loading...

Next up

Help wanted!

Voice actor (Spanish)

More information in the article

Help wanted!

Animator

More information in the article

Preparations for the release are in full swing!

A new page will be created for the new version of the game. I have already created a description for it

2025

Kikkerstein had a great day 1 at LVL UP EXPO!

If you’re in Vegas, come see us on day 2!

After 3.5+ years, I changed the logo. I liked the old one quite well, but I decided to redesign it because of the upcoming change in my direction in game development.

What do I mean?

You'll find out soon.

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

Next game feature - Statistics

Statistics are something that is always interesting to look at. Especially after spending time in the game!

2025

Game feature reveal - Speedrun mode

This is a level where you not only need to win, but also do it as quickly as possible!

3 difficulty levels - so you can choose the one that is comfortable for you!

2025

Game Jolt is at LVL UP EXPO with a booth highlighting indie games!

Follow the Jolters whose work will be showcased at our booth to complete the quest.

If you do, you'll get Coins and a trophy!

Help wanted!

Translator (any language), Animator

More information in the article