MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/StudentInterface.java:17–24  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

15
16public class StudentInterface {
17 public static void main(String[] args) {
18 // TODO Auto-generated method stub
19 arithmOp obj = new arithmOp();
20 obj.add(10, 15);
21 obj.sub(15, 10);
22 System.out.println(it1.x + it1.y); // This works without errors (actually a wrong method - don't use)
23 System.out.println(obj.x + obj.y); // This works but gives errors.
24 }
25
26}

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
subMethod · 0.95

Tested by

no test coverage detected