Yes,
You can do that.
Example1
public abstract class AbstractEx { }
Example2
public abstract class AbstractEx { int sum(int a, int b){ return a+b; } }
Above
two programs compile and runs fine.
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
public abstract class AbstractEx { }
public abstract class AbstractEx { int sum(int a, int b){ return a+b; } }
No comments:
Post a Comment