Assi 5 Oop Usman 16309
Assi 5 Oop Usman 16309
Section:- CC
Input
Output:
Task 2:
Input
Output
Task 3:
REQUIRED TABLE
Public Protected Private
The data members of the The data members of a The data members of a
class public can be class protected are only class private are
accessed from anywhere accessible to a class accessible within the class
in the program. derived from it only
Reason:
is one of the fundamental aspects of Object Oriented Programming. It allows programmers
better control of how data flows in their programs, and it protects that data.
Input
Output
Task 5:
i. Modules and Packages
• A package is a collection of Python modules
• A module is a single Python file