Which of the following statement(s) is/are true?
a. Hiding internal data from the outside world, and accessing it only through publicly
exposed methods is known as data encapsulation
b. Common behavior can be defined in a superclass and inherited into a subclass using
the extends keyword.
c. The term "class variable" is another name for non-static field.
d. A local variable stores temporary state: it is declared inside a method.
Answers
Answered by
1
Answer:
FALSE
FALSE TRUE
FALSE
HOPE IT HELPFUL TO YOU
Answered by
0
1. Yes it is true
- Hiding internal data from the outside world and using it through public methods is known as Data Encapsulation.
- Data Encapsulation is the process in which Personal data should be wrapped through a mechanism where it a hidden for the users.
2. True
2. True
3. False
- The Particular (Istance) variable is another name Non-static field.
- A class variable is not another name of a non-static field.
- A class variable is also called another name of the Static field.
4. True
local variables stores temporary states it is declared inside a method.
Similar questions