what does class consist of ???
Share
what does class consist of ???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
I'm Rajdeep....
A class in Java consists of Data members and member methods. Data members are also called instance variables and member methods are used to handle data members. You can also define a Constructor to initialize the instance variables....in that case a Constructor is also a member method....In this way, Java promotes encapsulation...by wrapping up data members and member methods......
Hope this helps..
Thanks.!