UrbanPro
true

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Class, Object and Methods in JAVA

Debabrata Mandal
15/06/2017 0 0

Lesson-1:

Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But be honest and think how many of you can really understand the actual concept. Let me explain it in my way:

Class: I would say a class is a community, like Human or Indian.

Object: Object belongs to a particular community/class and holds behaviours of that class. Like you, me, he, she etc who belong to or represent the human community.

Method: Method defines some specific functionality of the belonging class. As for example eating, speaking is some functionalities of human class. But the functionality many vary from object to object. Like you speaks English and I speaks the Hindi language. We both are objects of the Human class.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Circular motion
Circular motion is rotation along a circle: A circular path or a circular orbit. It can be uniform, that is, with constant angular rate of rotation, or non-uniform, that is, with a changing rate of rotation. Examples...

Java Program Sample Application
/* WAP to print given message on the console using java*/ // Class declaration in java class sample { // Main function public static void main(String args) { // function for printing on the console System.out.println("Hello...
S

Necessity of Theory and Practical in Computer Science.
Upon studying a subject both theory and practical are important. Usually many schools concentrate more on theory and the marks not on the practical. Other and opposite kind of people prefer practical...

Variable Resistor Concept
•In electrical circuit, a switch is used to turn the electricity on and off just like a valve is used to turn the water on and off. •There are times when you want some water but don’t...

Java 8 Predicates
In the previous lession, we have learnt how to use filters and collectors. In filter we have passed the condition to evaluate whether the object is eligible to be filtered or not. Code given below for...
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more