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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:27:19+00:00 2026-05-26T20:27:19+00:00

Some methods will perform an operation on an object’s property (can’t think of an

  • 0

Some methods will perform an operation on an object’s property (can’t think of an example), but some methods will not actually affect an object’s property but just return a value (DateTime.Add() for example).

I know it’s a simple question but I don’t know how to refer to the two types of methods.

  • 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-26T20:27:19+00:00Added an answer on May 26, 2026 at 8:27 pm

    Property Access Methods and Derived Property Methods are what I’ve used in the past to differentiate.

    For example a property access method may well do the following for an imaginary property that isn’t stored as a DateTime.

    DateTime GetOrderDateTime()
    {
        return OrderDate.ConvertToDateTime();
    }
    

    a derived property method would be:

    DateTime GetNextOrderDate()
    {
        return GetOrderDate.AddOneMonth(...);
    }
    

    I’m deliberately avoiding the discussion about what should be properties and what should be methods on the understanding that this is well defined in the context posted by the OP.

    Modifying properties within these methods, as Adam says is a good way to introduce side effects – best to stick with good names (e.g. ModifyTotal) and conventions that Get methods and property gets should never (normally) modify properties.

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

Sidebar

Related Questions

i have a coldfusion cfc and some methods in it. MethodA will return a
I’m after some C# code that will have the following methods that will return
I'm building a class library that will have some public & private methods. I
We have some methods that call File.Copy, File.Delete, File.Exists, etc. How can we test
In C#, I created static methods to help me perform simple operations. For example:
Okay, so I've got some C code to perform a mathematical operation which could,
I'm attempting to build a Windows Service which will execute some method when a
I have some code in method C that will get executed based upon the
I need to make some reflective method calls in Java. Those calls will include
What are some methods of utilising Eclipse for Dependency Management?

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.