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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:05:52+00:00 2026-06-13T12:05:52+00:00

I want to make a method for creating an arbitrary amount of Player-objects (stored

  • 0

enter image description here

I want to make a method for creating an arbitrary amount of Player-objects (stored in an ArrayList in PlayLogic). For now I’ve decided on just creating 2 Player-objects. I’m hardcoding this in PlayActivity by calling createPlayers(2), so the implementation of this.. is it better to pass the parameter to Play which then passes the parameter to PlayLogic which creates 2 Player-objects.. or is it better if I directly call PlayLogic from PlayActivity?
I want my design to reflect efficient design (so I want as few relations as possible, not sure if this is the correct UML-term..).

  • 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-13T12:05:53+00:00Added an answer on June 13, 2026 at 12:05 pm

    There will be a trivial amount of overhead that comes about from having an extra layer in the process. This overhead is not enough to dictate muddying a design (improper abstraction). The reason why there is extra overhead is because you are asking someone else for information in the multi-layered approach. For instance:

    2 People can communicate with each other faster than 3 people can with the same information, follow the example below:

    A -> B (what is 2+2)  
    B-> A (4) 
    
    VICE
    
    A->B (what is 2+2)  
    B->C (what is 2+2)  
    C->B (4)  
    B->A(4)
    

    Further you talk of performance, but have opted to use an ArrayList, it could be the case that this data structure is incorrect, we would need more information about the underlying object model and the operations that will be performed most often during execution.

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

Sidebar

Related Questions

I want to make a method that takes any file and reads it as
I want to make a search method from a list of Restaurants. The user
I want to make an extension method which fills a stackpanel with buttons. In
I want to make an interface in C# that defines a method that always
I want to use a category to make a method on the original class
I have a method: myMethod() {} that I want to make accessible to javascript.
I want to ask if is there any faster method how to make this
So I'm trying to make an application using the Singleton Method. I want to
I'm creating a SQL CE database file programmatically and want to make sure I'm
I want to make a static method in my Util class which will return

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.