@koustuvsinha/

DelayedDefenselessAmericanshorthair

Java

No description

fork
loading
Files
  • Main.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6599836532030443","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"Y2xhc3MgVmVoaWNsZSB7CglwdWJsaWMgdm9pZCBzdGFydCgpIHsKCQkvLyBzdGFydGluZyB0aGUgZW5naW5lCgkJU3lzdGVtLm91dC5wcmludGxuKCJzdGFydGluZyB0aGUgZW5naW5lLi4uIik7Cgl9CgoJcHVibGljIHZvaWQgc3RvcCgpIHsKCQkvLyBzdG9wcGluZyB0aGUgZW5naW5lCgkJU3lzdGVtLm91dC5wcmludGxuKCJzdG9wcGluZyB0aGUgZW5naW5lLi4uIik7Cgl9Cn0KCmNsYXNzIENhciBleHRlbmRzIFZlaGljbGUgewoJaW50IG51bWJlck9mU2VhdHMgPSA0OwoKCXB1YmxpYyBpbnQgZ2V0TnVtYmVyT2ZTZWF0cygpIHsKCQlyZXR1cm4gbnVtYmVyT2ZTZWF0czsKCX0KfQoKY2xhc3MgTWFpbiB7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgVmVoaWNsZSB0ZXNsYSA9IG5ldyBDYXIoKTsKICAgIHRlc2xhLnN0YXJ0KCk7CiAgICB0ZXNsYS5zdG9wKCk7CiAgICBDYXIgbmlzc2FuID0gbmV3IFZlaGljbGUoKTsKICB9Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Vehicle {
	public void start() {
		// starting the engine
		System.out.println("starting the engine...");
	}

	public void stop() {
		// stopping the engine
		System.out.println("stopping the engine...");
	}
}

class Car extends Vehicle {
	int numberOfSeats = 4;

	public int getNumberOfSeats() {
		return numberOfSeats;
	}
}

class Main {
  public static void main(String[] args) {
    Vehicle tesla = new Car();
    tesla.start();
    tesla.stop();
    Car nissan = new Vehicle();
  }
}