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 7750183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:13:33+00:00 2026-06-01T11:13:33+00:00

After a several hour (re)search, I just can’t come up with a explainable difference

  • 0

After a several hour (re)search, I just can’t come up with a explainable difference between a normal Abstract class and the use of a Template Pattern.

The only thing I see is:
while using an Abstract Class you are required to implement all methods. But while using Template Method, you just have to implement those couple of abstract methods.

Can someone please explain to me the (dis?)advantages of Template Pattern and the main difference between Template Pattern and an Abstract Class.

p.s. I just want to know this better for my own understanding/study

EDIT:
Thank you for the quick response! But I will explain it a little better (because it is already going the right way 🙂 ). I know what a abstract class is! (and class which methods you have to implement!), and I know the basic idea of a Template Pattern (a kind of a skeleton of an procedural algorithm defined in a class?). I am a little confused because they look-a-like! Also i’m not English, so it’s possible that I oversee something! THNX in advance

  • 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-01T11:13:34+00:00Added an answer on June 1, 2026 at 11:13 am

    Like you said, Template is a pattern. Abstract Class is a language specific construct that can be used to implement a template. Some languages (e.g. Python or JavaScript) don’t have the notion of Abstract Classes, but that doesn’t mean that you can’t implement Template in them, just that you have to use a different contract.

    One advantage of having abstract classes available in a language is that you can then enforce implementation of required template methods (a contract) at compile time. In a language like JavaScript the contract cannot be enforced and can only be specified through conventions/documentation.

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

Sidebar

Related Questions

after several months having the site disappear from search results in every major search
I've just started diving into Node.js after several years of PHP programming and I
I had a class that only worked in Delphi 7 and after several attempts
I'm running a java program on many computers that interact between them. After several
After several failed attempts using ExtJS I have now decided to use javascript.The requirement
why after several times click on buttons, is hang website? i use of function
After several days of tests I find the only way I can create a
I am just getting back into C++ Bulder after several years. What's currently the
after several attempts, I can not solve this problem. I have the following mysql
I was just thrust into Linux programming (Red Hat) after several years of C++

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.