LESSON 5 Flashcards
ENCAPSULATION is also known as
DATA HIDING
Python is always Private (True or false)
False - PUBLIC
loophole of python is not secured (true or false)
True
Python uses “ _ _ “ in order to be Object Oriented Paradigm (True or false)
True
● ____ is one of the
important building blocks of object oriented programming which
enables the wrapping of all data
(attributes and methods) into a
single component(class)
● This prevents the accidental
modification of data by imposing
some restrictions on accessing
variables or methods directly.
Encapsulation
is the process of hiding
the data of an entity from others to
prevent the accidental modification
of data by other entities
Data hiding
Based on the visibility of the object’s attribute in a
class, they can be classified in two, which are __
private and public
If a data member or member function is
accessible from any part of the program, it is
considered as
public
If its visibility is restricted to the defined class, then
it is considered as
private
Access modifiers are ___ elements of
object-oriented programming as they restrain the
access to the attributes and methods in a class.
inevitable
Python does have specific access modifiers
like C, Java, and other languages. (True or False)
False - DOES NOT HAVE
Python being an object-oriented programming
language makes use of underscores to perform
the function of access modifiers that are done in
other languages (True or False)
True
In Python, all attributes are private by default. (True or False)
FALSE - PUBLIC
Any data or member function that prefixes with
double underscore is private to that class (TRUE OR FALSE)
(True)
● ___ is the process of hiding internal
implementation of a process from its end user,
showing only essential features of data to the
external world
● This is done to reduce complexity and increase
efficiency.
● In the context of programming, isolating the
signature of a method from its definition is known
Abstraction