Skip to content

Commit d76739d

Browse files
authored
Create AbstractDemo.java
1 parent 07ce1e8 commit d76739d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
abstract class AbstractDemo
2+
{
3+
/**
4+
* Here class is abstract also method is abstract.
5+
* dosomething is an abstract method
6+
* show is a non abstract method
7+
*/
8+
abstract void dosomething();
9+
10+
void show()
11+
{
12+
System.out.print("non abstract method");
13+
}
14+
15+
16+
}

0 commit comments

Comments
 (0)