Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 70 - CodePilot V5.0 C8
P. 70

    ENCAPSULATION

                      Encapsulation means grouping related information and design together so it works as a single,
                      self-contained unit. It hides the internal details and shows only the required features to the user.
                      This ensures data security and prevents unwanted access or modification.
                      In the Personal ID Card:

                          All ID card content is organised in a main section.

                          Each section is separated to prevent changes from affecting others.
                          Design rules are kept specific to each section to avoid interference.

                          The content (data) and design (style) are separated: one for structure, the other for appearance.

                                                                ACTIVITY-3

                          Netflix suggests  movies  and shows you  might  like,  but  it
                          doesn’t explain how it makes these recommendations.

                          Now, answer the following questions:

                          (a)   Do you think Netflix should explain how it decides what
                              to recommend or is it enough to just see the results?

                          (b)   How is this similar to a TV remote where you press a button but don’t see how it works?

                                                                ACTIVITY-4

                          You  are tasked  with  preparing  an online  quiz  to  shortlist  students  for an interschool
                          competition. Use Google Forms to create the quiz.

                          Now, answer the following questions:
                          (a)   Gather the responses from the Google Sheet, shortlist the top five scorers and write

                              their names.

                          (b)   What according to you is encapsulated in this task?

                       68
                            CodePilot (V5.0)-VIII

| 65 66 67 68 69 70 71 72 73 74 75 |