Which action encapsulates the Vehicle class?

Given the definition of the Vehicle class:


Which action encapsulates the Vehicle class?
A. Make the Vehicle class public.
B. Make the name variable public.
C. Make the setName method public.
D. Make the name variable private.
E. Make the setName method private.
F. Make the getName method private.

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “Which action encapsulates the Vehicle class?

  1. i wrote my java and failed yesterday i think its better to cram what the memorandum says? since here the answer says is B. lets talk guys.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.