MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / Main

Class Main

Lecture 11 OOPs/src/Main.java:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4}
5
6public class Main{
7 public static void main(String[] args) {
8 Student obj1 = new Student();
9 obj1.rollNo = 1;
10 obj1.studentName = "Rohan";
11 System.out.println(obj1.rollNo);
12 System.out.println(obj1.studentName);
13
14 Student obj2 = new Student();
15 obj2.rollNo = 2;
16 obj2.studentName = "Rahul";
17 System.out.println(obj2.rollNo);
18 System.out.println(obj2.studentName);
19 }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected