3 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!

Translator (any language), Animator

More information in the article

The project is in the final stages of development - game balance and testing team will begin forming very soon.

But before that, some animations need to be finished.

More information in the article

Help wanted!

Animator

More information in the article

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

Introducing the voice acting team!

2 roles, 4 languages, 8 voice actors. So much work went into this - all to make your gameplay even better!

Links and contacts will be on the new game page that will be created soon

2025

Shop Crush is a hybrid visual novel, where you connect with customers, learn their characters, and untangle the dark, Literal Illusion puzzles about them.

The game's playtest has begun. We're celebrating with a quest!

Learn more: https://bit.ly/ShopCrushGJ

Introducing the translation team!

9 languages, 7 translators and a huge amount of content to translate. I'm sure it's worth it!

Links and contacts will be on the new game page that will be created soon

2025

Help wanted!

Translator (English -> Portuguese)

More information in the article

Episode 3 of IMPRINT, our ZERO PARADES devcast, is now live! Our host, Jim, is joined by producers Jess Crawford and Tom Leigh as they tackle the big questions related to the game's production. Listen now: https://www.youtube.com/watch?v=-ozduZD6gqQ

Help wanted!

Voice actor (Spanish)

More information in the article