Tagged Questions
2
votes
6answers
747 views
What are abstract classes and abstract methods?
I got several explanations but so far I'm not able to understand that what are the abstract classes and methods in Java.
Some said it has to do something with the security of the program, other said ...
6
votes
6answers
2k views
What are the differences between abstract classes, interfaces, and when to use them
Recently I have started to wrap my head around OOP, and I am now to the point where the more I read about the differences between Abstract classes and Interfaces the more confused I become. So far, ...
6
votes
4answers
944 views
Can I consider interface methods as abstract methods?
I was thinking about that, and I had some doubts.
When I declare an interface, for example:
public interface MyInterface
{
public void method1();
public void method2();
}
Could these ...