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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:17:37+00:00 2026-05-14T06:17:37+00:00

I have seen many answers on stackoverflow, but I didn’t find an answer that

  • 0

I have seen many answers on stackoverflow, but I didn’t find an answer that is matching mine.
Apart from all those difference, Does it make sense if we say an abstract class abstracts the implementation of behaviour while an interface abstracts the type which implements the behaviour.

  • 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-05-14T06:17:37+00:00Added an answer on May 14, 2026 at 6:17 am

    The main differences from design point of view are that:

    • you can declare a contract on constructor of the implementing classes, by creating a protected constructor in the base abstract class.
    • you can provide implementations of methods usable by base classes
    • you can make a wrapper around the contract (e.g. validate method arguments)
    • you can provide a “calling scheme” when you create non-abstract methods that call abstract methods of the type, implemented by derived classes. This can be useful for implementing abstraction of an algorithm in derived classes, while the base class implements all the handling logic – prepares and validates data, and lets the actual processing algorithm to be implemented by derived classes.

    So I would say you are correct in the statement that “an abstract class abstracts the implementation of behaviour while an interface abstracts the type which implements the behaviour”

    Abstract class: provides requirement to implement some methods (you override methods of the abstract class)

    Interface: defines only a contract. Indicates that a class that implements the interface has methods of the interface (you implement an interface)

    For example:

    • by implementing an interface on an existing class, you just declare adding the interface methods to the contract of the class. The class may already implement all the methods of the interface and you do not need to change anything in the existing class.

    • by changing the base type to an abstract class, you are required to override all the methods, even if methods with the same names as abstract methods of the base class already exist on the type.

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

Sidebar

Related Questions

I have seen many posts about this problem but didn't get an answer. I
I have seen many articles and Questions/Answers Regarding Lock Escalation but following things are
I have seen this question asked many times but none of the answers seem
I have seen many Android answers that suggest calling the garbage collector in some
I have seen many versions of this question but the answers always turn into
I have seen many apps that take instrument classes and take -javaagent as a
I am a newbie in cryptographic system but i have seen many sources tell
I've seen many questions and answers about mapping strings to enums and vice-versa, but
I have seen many posts and questions about Mocking a private method but still
I have seen many somewhat similar questions, but nothing quite what I'm looking for.

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.