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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:07:00+00:00 2026-05-17T19:07:00+00:00

Q1. In my university studies of object-oriented modelling and design they recommend thinking about

  • 0

Q1.
In my university studies of object-oriented modelling and design they recommend thinking about what an object can do for its method, and what its responsibilities are for its attributes. All attempts at clarification have resulted in further confusion.

This tends to generate a class diagram with actors who have all the actions, and inner classes which only hold data.

This doesn’t seem correct. Is there another way of thinking about how to model the objects?

Q2. Also, the course seems to emphasize modelling the objects after their real-world counterparts but it doesn’t necessarily make sense in the domain model. IE. In a medical practice, they have Patient: CreateAppointment(), CancelAppointment() but that is not how it would be implemented (you would modify a the appointment collection instead). Is there another way of thinking about this?

Example Q1

Secretary: RecordAppointment(), RecordAppointmentCancellation()

Appointment: time, date,… (no methods)

Example Q2

Doctor: SeePatient()

While SeePatient is a use-case, it does not make sense for a method on the actual class. How do you think about this?

  • 1 1 Answer
  • 1 View
  • 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-17T19:07:00+00:00Added an answer on May 17, 2026 at 7:07 pm

    Unfortunately, the roadblock you’ve hit is all too typical in academia. Academic projects tend to start with video rental stores, libraries or student registration systems (yours is a variance of this with a doctor’s office) and then inheritance is taught with animals. The guideline you’ve provided is also very typical

    they recommend thinking about what an object can do for its method, and what its responsibilities are for its attributes

    In fact when beginners ask I usually explain an object’s property’s are the things it knows about itself and its methods are the things it knows how to do. Which is really just another way of saying exactly what you have there. As you’ve discovered this way of thinking quickly breaks down when you start discussing more tangible systems and not just examples.

    For instance the guideline works pretty well with this object:

    public class Tree
    {
        public int Height { get; set; }
        public void Grow(int byHowMuch)
        {
            Height += byHowMuch;
        }
    }
    

    While this certainly fits the bill your right to think that it doesn’t “feel” right:

    public class Secretary
    {
        public void MakeAppoinment(Patient patient)
        {
            //make the appointment
        }
    }
    

    So what’s the solution? It’s a matter of taking what you are being taught and applying it. Learning and understanding design patterns will help a lot with developing systems which are more functional than a tree that knows how to grow.

    Recommended reading:

    • Design Patterns: Elements of Reusable Object-Oriented Software (also known as the Gang of Four or GoF)
    • Head First Design Patterns
    • Head First Object-Oriented Analysis and Design

    To solve the issue you’re been presented I would probably use a combination of inherited person classes and interfaces, which would perform their actions through a series of service classes. Essentially a secretary, doctor, and patient would all inherit from person and each of these classes could be passed to accompanying service classes. The service classes may or may not do things like SeePatient(). Please don’t take this example to mean that person classes wouldn’t have methods.

    Stack Overflow has more than a few related questions which may be of use:

    • Is Single Responsibility Principle a rule of OOP?
    • Are there any rules for OOP?
    • why is OOP hard for me?

    Additionally, it would be good to check out:

    • Single responsibility principle
    • Don’t repeat yourself
    • PrinciplesOfOod

    Finally, there isn’t a single definition of what makes an application object oriented. How you apply patterns, principles etc. will define your program. The fact that you are asking yourself these questions shows that you are 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'm currently in University and they're pretty particular about following their standards. They've told
Do you know any university which has its C++ course available online? I'm looking
I've recently studied about Guice in a University course, and have seen the Google
My university has several programs available for download. About 6 months ago I downloaded
I started Intelligent System studies at a university and our first language is Haskell.
For my university project I am creating a neural network that can classify the
I have a university course about functional programming, where I use SML. As a
I am a university student taking a HCI design course, and using C# and
For my university project I need to obtain various information about a photo on
Recently my university has set large projects for its undergraduates. One of these projects

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.