The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

newbie question about Abstract methods

hey, I'm working on a web application that I was given and I'm a little confused about
some of the code in some of the classes. These are some methods in this abstract class. I don't understand
how this post method works if the method it's calling is declared abstract. Could someone please tell me how this works?

W

Originally Posted by FailMouse

hey, I'm working on a web application that I was given and I'm a little confused about
some of the code in some of the classes. These are some methods in this abstract class. I don't understand
how this post method works if the method it's calling is declared abstract. Could someone please tell me how this works?

Re: newbie question about Abstract methods

Abstract methods are implemented in concrete child classes, so in the code you posted a child class would implement authorizeGet, the calling parent abstract class doesn't care how its implemented, only that it is (allows many children to implement the behavior differently, but the calling procedure can stay the same). Similar to the Template Design Pattern, where the calling class only cares about a method being implemented, not how it is implemented