Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copy properties

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Copy properties

    I am confused about how best to 'capture' the values of some Strategy Properties into an instance of a class.

    What I want to do is use the values of some properties as the "base" parameters in my logic but also have them over written by some other Strategy Properties depending on the situation.

    I want to make a new class whose constructor would create default values copying the "base" parameters but received an error that I need an instance of the strategy.​





    ​I am a programmer, good at programming, web design, software development
    Last edited by donwynne; 09-12-2022, 09:32 PM.

    #2
    Hello donwynne,

    Thank you for your post.

    So I may better assist you, please clarify what you are aiming to achieve:
    • Which properties/parameters are you referring to? Please provide an example.
    • At what point are you wanting these values to be overriden/changed?
      • You mentioned "depending on the situation" - do you mean that the original "base" parameter will be updated once a certain condition within your logic is met?
    • What is the exact error message that you got and when does it occur?
      • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
      • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X