OCAJP – HOW TO Apply encapsulation principles to a class?
This post is about the OCAJP exam objective “Apply encapsulation principles to a class”. In exam, You will asked like “How to make this class strongly encapsulated?”. In this article, we would explain encapsulation concept according to OCAJP exam and answer all your queries related to the encapsulation concepts. OCAJP 8 Free Practice Questions What is Encapsulation Encapsulation is a process of binding the data (variables) and code acting on the data (methods) together as a single unit. Consider the example When you login into your Gmail or Yahoo mail account, there will be lot of back end process on […]
OCAJP – HOW TO Apply encapsulation principles to a class? Read More »