Monday, April 23, 2018

Can we have an abstract class with concrete method ?

  1. abstract class MyAbstractExe {
  2. int x = 10;
  3. void test() {
  4. System.out.println("yes we can have an abstract class with concrete method !!");
  5. }
  6. }
Yes ! we can have an abstract class with concrete method !! There is no error.

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...