Answer:
Option (D) using the private access specifier on the class fields
Explanation:
- The private access modifier can be used to hide the data.
- Methods and data variables ( fields ) can be declared with the private access modifier.
- Data hiding is a OOPS Concept which can be achieved with the private keyword (private access modifier).
- The access modifiers are of types Public, Private, Protected and Default ( no access modifier - no need to explicitly specify the default keyword).
- Data hiding means to hide the data, the data is contained in the class variables.So, option (d) using private access modifier on the class fields is correct option.
- Option (A) is wrong as the using the public access modifier doesn't hide anything. It is public and is visible to the public.
- Option (B) is wrong as using the private access modifier on the methods means it is hiding the implementation of the methods not the data.
- Option (C) is wrong as using private access modifiers on class definition means making the classes not visible to other classes it doesn't mean data hiding as the data is contained in the class variables.
Answer: identity theft
Explanation: identity theft is when somebody poses as you, not to be confused with identity fraud, which is when somebody takes your personal information (such as a credit card) to do things in your name.
Answer:
This program is written in C++. You can implement this program in any language. The code along with comments is given below in explanation section.
Explanation:
#include <iostream>
using namespace std;
int main() // main function
{
int number, reverseNumber=0, reminder; //varible declaration
cout<<"Enter a number: "; //prompt user to enter the number
cin>>number; //save the entered number into number variable
while(number!=0) //while number does not become zero.... remain in loop
{
reminder=number%10; // taken reminder of number
reverseNumber=reverseNumber*10+reminder; //store the number digit into reverse order
number/=10; //decrease the number or shift the division to next digit
}
cout<<"Reversed Number: "<<reverseNumber<<endl; //print reversed number.
return 0;
}
I think the answer is c wooden frame
Placing a found virus in a secure area on the hard drive