- abstract class MyAbstractExe {
- int x = 10;
- abstract void run();
- void test() {
- System.out.println("yes we can have an abstract class with concrete method !!");
- }
- }
Yes ! we can have an abstract class with both abstract & concrete method. there is no error.
No comments:
Post a Comment