Creation of class in java?
Please help me with the answer
Answers
Answered by
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
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..
Note:*class name should be start with alphabets.
*you cannot use any special symbols except '_ and$' sign..
HOPE UT HELPS..
Similar questions
Math,
8 months ago
Computer Science,
8 months ago
Chemistry,
8 months ago
Math,
1 year ago
English,
1 year ago
Math,
1 year ago
India Languages,
1 year ago