Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8966645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:03:59+00:00 2026-06-15T17:03:59+00:00

I was recently looking through some open source code PicketLink code. If you take

  • 0

I was recently looking through some open source code PicketLink code. If you take a look at this class, you’ll see a number of concrete methods in an abstract class that do nothing. Is there any purpose whatsoever for this?

I thought about two things:

  1. If the method needs to be overriden by subclasses and not defined in the parent abstract class, why not simply make it abstract?
  2. If only some of the child classes actually need to implement the method, wouldn’t this indicate the need for a restructuring of the class hierarchy so that children are not forced to have methods that are not applicable?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:03:59+00:00Added an answer on June 15, 2026 at 5:03 pm

    While not the most common case, sometimes it is handy in the context of a template method. In this case there is a method that defines the flow, leaving the concrete implementation of some parts to its subclasses. In some cases a default concrete behavior is to do nothing, leaving the concrete method in the base class empty, but allowing customization in the subclass by overriding it.

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking through some code on an open source project recently and
Recently I was looking at some source code provided by community leaders in their
Recently I was looking through some website's code, and saw that every <div> had
I've recently been looking through my warnings in Eclipse and come across this one:
I was looking through some code at work and found something I've not encountered
Recently, I was looking through some SOAP-about documentation and saw few SOAP calls\responses. Of
I've recently joined an iPad project. In looking through the code base I've come
Recently I've been looking at opening a tab using this script: $('.tofour').click(function() { //
I recently got tossed some C# code to make some minor cosmetic changes to.
I have recently started studying Google Web Toolkit. I have went through some walkthroughs,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.