Virtual University of Pakistan Study forum !
Graded discussion will be launched on July 13, 2017 and it will remain open for two days. You can post your comments on below mentioned topic till July 14, 2017.
A university wants to develop an application that will manage its student’s records. Application will store student’s personal information like registration no., name, address, current semester, study program and CGPA. University wishes that no other application should have full access to their student’s information except what they want to show to the other applications.
If you are positioned as a programmer to program this application, which programming construct you will adopt; “Class” or “Structure (Struct)”?
Justify your answer with logical reasons. Clear and concise comments are suggested.
§ NO GDB is accepted via e-mail in either case
§ Unnecessarily lengthy replies of GDB will cause in deduction of marks
Data hiding, also known as information hiding or data encapsulation in computer science, is a software development technique used in object-oriented programming. It is mainly used to hide internal object details, i.e. the design decisions in a computer program that are most likely to change.
Abstraction hides away implementation details from data and programs. It only shows relevant details as and when required by the program.
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.