Computer Science, asked by bugxcfbv, 1 year ago

Creation of class in java?
Please help me with the answer

Answers

Answered by Anonymous
0
Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. In encapsulation, the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class.
Answered by Divyu11
0
Use the keyword *class* then your class name.
Note:*class name should be start with alphabets.
*you cannot use any special symbols except '_ and$' sign..
HOPE UT HELPS..
Similar questions