CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009

    "Embedding a method" refactoring method

    Somebody put me a question: when should we apply refactoring method: Embedding a method. I have done a search on internet about this refactoring method, but I didn't find something clear. Can you tell me (or redirect me) about this ?

    Thank you.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: "Embedding a method" refactoring method

    I never heard about "Embedding a method" nor about "refactoring method".
    What type of "method" is here meant ? A Class method, a mathematical/physical/... method?
    What does it have to do with the Visual C++ Programming Forum:
    Forum: Visual C++ Programming
    Ask questions about Windows programming with Visual C++ and help others by answering their questions.
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2017

    Re: "Embedding a method" refactoring method

    Quote Originally Posted by mesajflaviu View Post
    Can you tell me (or redirect me) about this ?
    Embedding usually means that something is made part of some larger structure. And since the term "method" is predominantly used in object orientation, the larger structures in question could be the OO design patterns,

    It's a wild guess, but why not?

    Or, when I think about it, the larger structure may very well be the class. Say you refactor procedural code by utilizing the class concept. Then free functions will be embedded as methods in classes. So, "when we introduce OO" is one possible answer to the question that was put to you.
    Last edited by wolle; January 27th, 2022 at 06:38 AM.

  4. #4
    Join Date
    Jan 2009

    Re: "Embedding a method" refactoring method

    I am really sorry for this late response, thank you all, I'll take a note and I hope to solve the issue.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width