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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X