Concepts of Classes Objects Methods in Object Oriented Java Programming

In this tutorial, you will learn the Object Oriented Java programming Concepts.

You will learn what is a class, what is an object, what are methods, how to create and use them, what is their advantages in detail with example.

Source code for this video tutorial

Code for Student.java

package oops;

public class Student {
 public String name;
 
 public void introduce(){
  System.out.println("Hey i am "+name);
 }
}

Code for Tutorials.java

package oops;

public class Tutorials {

 public static void main(String[] args) {
  
  Student anil = new Student();
  anil.name = "Anil";
  anil.introduce();
  
  Student mani = new Student();
  mani.name = "Mani";
  mani.introduce();

 }

}
Back To Top