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

The Archive Base Latest Questions

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

On my next step of learning Java, I’m now on Classes and Inheritance. I

  • 0

On my next step of learning Java, I’m now on Classes and Inheritance.

I have one homework to solve but I’m a little stuck so I’m here not asking for code but to see if you agree with the way I’m thinking and if not, help me with some guidance. Please understand that unfortunately I do not understand all of Java and I’m taking baby steps on this language.

So, here is the problem:

It is intended to create a program that supports the orgazation of conferences. A conference has a name, a location and a date. In addition, each conference has a organization committee and a program committee. Members of both committees are identified by name, email address and institution. The organization committee members are also characterized for their role in the conference (finance, spaces or meals). The program committee members are
characterized by a parameter that reflects their performance in the previous edition of the conference (poor, fair, good, excellent). In addition, program committee members are also associated with a list of articles that need review.

Each article is characterized by it’s title, list of author’s and the evaluation result (note between 1 and 5, with 5 being the best). The final evaluation of each article is obtained by the average of the evaluations conducted by two members of the program committee. The authors are characterized by name, email address, institution and registration fee. This fee can be of two types: senior (teachers or researchers) and students. Students should consider the degree (bachelor, master or doctorate).

The conference registration fee is 400$ for seniors and 200$ for students. A subscription entitles you to submit one article. Senior authors who want to submit more
than an article must pay 50$ for each additional article. It is considered that the first author of each article will be responsible for its presentation at the conference.

With this I have to implement some functions but that’s not why I’m here.

Reading the problem i can see that

name
email
institution

is used to identify member’s of committee and authors.

So I was thinking of creating an

public class Identification{
    ---------------
    name
    email
    institutionName
    ---------------
}

and then everything gets complicated because I know I have to create some that extend that class.

I can create

public class Conference{
    ---------------
    name
    location
    date[]
    ---------------
}

and then

public class Organization extends Conference{
    ---------------
    role[] // 0 for finance, 1 for spaces and 2 for meals
    ---------------
}

and

public class Program extends Conference{
    ---------------
    performance[] //0 poor, 1 fair, 2 good and 3 excellence
    articlesList[] // probably an id of and article
     ---------------
}

but both classes Organization and Program have members and this members are identified by the same thing that is on class Identification. As I now, Java can only extend one and only one class so now I’m stuck how this things relation between themselves.

Reading the rest of the problem I identify

public class Article{
    ---------------
    title
    listOfAuthors[] //probably an id
    evaluation //this is done by two members on program committee but I can't figure out how they relationship between themselves.
     ---------------
}

public class Authors{
    ---------------
    type[][] // 0 for seniors and 1 for students on first column and 0 teachers, 1 researchers, 2 bachelor, 3 master and 4 doctorate on second column.
    numberOfArticles //how many articles author wants to submit
    conferenceFee[] // if on type[i][0] is 0 then Fee is 400 + (numberOfArticles * 50)  else is 200
    ---------------
}

Is this the way or not. I can’t understand if I have to create all of this classes and what class extends the other class. Any comment?

favolas

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!UPDATE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks for all your feedback. Let’s see if I understood at least some of your suggestions.

public class Member{
    ---------------
    memberID
    name
    email
    institutionName
    ---------------
}

public class Authors extends Member{
    ---------------
    authorsID
    conferenceFee
    ---------------
}

public class Seniors extend Authors{
    ---------------
    degree[] // 0 for teachers 1 for researchers
    numberOfArticles = // Some int
    fee = 400

    public int payment(int numberOfArticles ){
        return numberOfArticles * fee;
    }
    ---------------
}

public class Students extend Authors{
    ---------------
    degree[] // 0 bachelor, 1 master and 2 doctorate
    numberOfArticles = // Some int
    fee = 200

    public int payment(){
        return fee;
    }
    ---------------
}

public class Article extend Authors{
    ---------------
    articleID
    title
    listOfAuthors[] //probably an id
    ---------------
}

public class ProgramCommitteeMember extends Member{
    ---------------
    role[] // 0 for finance, 1 for spaces and 2 for meals

    ---------------
}

public class OrganizationCommitteeMember extends Member{
    ---------------
   lasYearPerformance[] //0 poor, 1 fair, 2 good and 3 excellence
   articlesList[] // probably an id of and article
    ---------------
}

public class Committee{
    ---------------
    committeeType[] // 0 for Organization Committee and 1 for Program Committee
    ---------------
}

public class OrganizationCommittee extends Committee{
    ---------------
    listOfMembers[] //member id
    ---------------
}

public class ProgramCommittee extends Committee{
    ---------------
    listOfMembers[] //member id
    ---------------
}

His this the way?

  • 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-26T22:37:15+00:00Added an answer on May 26, 2026 at 10:37 pm

    I see several points where I think you’ve gone off the rails.

    1. You show date as an array in Conference. Each instance of Conference has only a single date.

    2. You show both Organization and Program as a subclass of Conference. They should not be. Instead there should be a superclass called Committee, with two subclasses, OrganizationCommittee and ProgramCommittee. Then your Conference class has two internal variables, one each of type OrganizationCommittee and ProgramCommittee. In other words, a “committee” is not a type of a “conference,” it is a member of a “conference.” (By member here, I don’t mean “a person going to a conference,” I mean, “an object that is owned by another object.”)

    3. Each committee has members. So you need a Member superclass, with two subclasses, OrganizationCommitteeMember and ProgramCommitteeMember. Your ProgramCommittee will then contain a list (an array for exmaple) of ProgramCommitteeMembers, and your OrganizationCommittee will contain a list of OrganizationCommitteeMembers.

    4. One other thing, you show role[] as an array in Organization. First, a role applies to a member of a committee, not an organization. Second, each member has only one role. What you need is a way to define a prescribed list of roles, so that only one of several valid values can be assigned. But each member has only a single role.

    Key on where your instructions use the phrase “has a” (which implies that one class contains an instance of another class) versus “is a” (which implies that one class is a type of a parent class).

    Hope this helps to get you on the right track.

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

Sidebar

Related Questions

I want to validate a condition before doing the next step, but only raise
I have a link: <a id=nextBut href=somelink class=button><span>Next Step</span></a> And I can control the
I have been learning Xcode 4.2 for a bit now and still can't get
I have successfully implemented push notifications to my app. The next step is, if
We have developed Air application and next step it is porting this application to
Here's what I have so far: http://jsfiddle.net/xhuLZ/ The next step, which I'm unsure how
I'm learning Java and GUI. I have some questions, and the first is if
What is the next logical step for language learning after learning BASIC?
I'm learning pointers, and gotten stuck for an hour now, with this code, #include
This is an extension / next step of this question I asked a few

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.