Hello Professor, hereis my final report of my CPT internship from August to December 2017.
Initially, I startedwith Core Java knowing about each concept and how it is dealt in real-world. Themost important concepts are Object-oriented principles. I came to know aboutProcedure-oriented and Object-Oriented programming languages and their keydifferences. A project should be designed with Low Coupling and High Cohesion,it should maintain Object-Oriented principles. The following explains about thevarious object-oriented principles with the examples shown.
1.Encapsulation:The representation ofcode and data together into a single unit is called Encapsulation. Thisincreases security, readability and maintainability. It is achieved by makingthe fields of a class as private and methods as public.
These methods aregetters and setters. The purpose of getters and setters are they encapsulatethe fields of a class, making them accessible only through the methods.In the below example,body mass index is calculated for each user where height, weight and bmi arerelated to each user and are private. Each user’s data should be secured andshould not share with other users.