[ create a new paste ] login | about

Link: http://codepad.org/6y9GbmSs    [ raw code | fork ]

emanresu - Plain Text, pasted on Nov 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Java

class class1
{
	int x1;
	void add()
	{++x1;}
	abstract void sub(); //This is where Eclipse says:
                             //"The abstract method add2 in type class1 
                             //can only be defined by an abstract class"	
}

public class insOfAbstsrc {

	public static void main(String args[])
	{
		class1 inst1 = new class1();
		System.out.println("hi");
	}
}



Create a new paste based on this one


Comments: