 |
CS201 GDB NO. 1 FALL 2022 |
CS201 GDB NO. 1 FALL 2022 || 100% RIGHT SOLUTION || Introduction to Programming II BY VuTech
SOLUTION
XYZ is a business
company that sells playing items for kids like toys, pretended kitchen sets,
lounge sets, babysitting training seats, swings, etc. The company keeps the
privacy of customers’ information that it gets from the registration, or order
page and does not disclose it to any third party or any other customer.
As a C++ programmer,
what would you recommend to the company about using “Structure or Class” at the
backend of the application to keep their customer’s records confidential?
Justify your answer
with logical reasons. Clear and concise comments are suggested.
GDB Instruction
- You
need to provide precise and to-the-point answers, avoid irrelevant details.
- Material
that is copied from the internet or another student will get zero marks.
- You
cannot participate in the discussion after the due date via email.
KINDLY,
DON’T COPY-PASTE
Solution:
According to our GDB
Question, as a C++ programmer, I suggest to the company about using “Class” at
the backend of the application to keep their customer’s records confidential.
In C++ language, most
classes are the same as structure. There are only some differences. A member of a
class is private by default while a member of a structure is public by default.
Class is a reference type of data type and it's declared using the class keyboard
while the structure is declared using struct keyboard. A variable can be initialized
but the structure cannot be done. If we talk about Security So, Class is secure and can hide its programming, On the other hand, a Structure is not
secure and cannot hide its implementation.
SUBSCRIBE, SHARE, LIKE, AND COMMENTS FOR MORE UPDATES
KINDLY, DON’T COPY-PASTE
SEND WHATSAPP or E-mail FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com