Quiz: Who can access your state?

Without compiling or running this code, can you tell if Malicious will be able to “steal” the password set in an instance of Child? Why or why not?

    public class Base

    {

         protected String _password;

    }

    public class Child : Base

    {

        public Child(string password)

        {

            _password = password;

       }

    }

    public class Malicious : Base

    {

        public String StealPassword(Child child)

        { return child._password; }

    }