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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:22:55+00:00 2026-05-15T15:22:55+00:00

By lower level package I mean a package a.b.c.d and by higher level package

  • 0

By lower level package I mean a package a.b.c.d and by higher level package I mean a.b.c and I’ve used the terms in relation to each other. I’m not sure if there’s a terminology for defining such levels.
However, from object oriented perspective, I wanted to know if it is a good idea to call a.b.c.d.aClass.aMethod() from a.b.c.anotherClass.anotherMetod(). In my opinion, a.b.c should be designed such that it is unaware of the package a.b.c.d since a.b.c.d represents either a more concrete form of a.b.c or something that logically comes below a.b.c.

  • 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-15T15:22:56+00:00Added an answer on May 15, 2026 at 3:22 pm

    In any case, it is not advised to make dependencies between packages go both ways. So if you have a dependency from package a.b.c to a.b.c.d, you shouldn’t have any dependencies from a.b.c.d to a.b.c. This is known as package tangling, which generally indicates high coupling and possibly broken layering of the application. Tools like Sonar can help you find package tangling.

    I generally put interfaces of my API in the higher level packages and implementations in the lower level packages. So references will go from lower level packages to higher level packages.

    If your API resides in a lower level package, you should reorganise your packages.

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

Sidebar

Related Questions

Is there a lower level of API below Cocoa as Win32 API below MFC?
I'm not an expert on lower-level non-object-oriented programming languages, and I'm in the middle
I'm not very experienced with lower level things such as howmany bytes a character
Are there pybluez wrapper functions for lower level bt functionality? I couldn't find anything
Total noob to anything lower-level than Java, diving into iPhone audio, and realing from
Is writing to stdout using printf thread-safe on Linux? What about using the lower-level
Is there a way to resize a std::vector to lower capacity when I no
I am exploring the lower level workings of the system, and was wondering how
I am new to the lower level useful functions of JavaScript, and I find
What does an r-value reference look like from a lower-level perspective. I just can't

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.