Banco do Brasil Agente de Tecnologia

Banco do Brasil Escriturário — Agente de Tecnologia (Brazil)

Software EngineeringEnglish
Exam overview

Practice session

In Java 17, a software engineer at Banco do Brasil is designing a payment processing module where a base class 'PaymentProcessor' defines a method 'public void process(Transaction tx)'. A subclass 'PixProcessor' overrides this method. At runtime, when an instance of 'PixProcessor' is referenced via a variable of type 'PaymentProcessor' and 'process(tx)' is invoked, which mechanism determines that the 'PixProcessor' implementation must execute?

Loading your practice session…