none
Design Pattern RRS feed

  • Question

  • I am going through the different methods and patterns, and there is a huge amount of information. From all the different approaches I've read through, I haven't been able to find the simple example that has an objects properties defined along with the business logic and functions. I don't mean validations and eventhandlers, I mean actual business functionality. 

    For example, a class Person with functions Run, Walk, and Stop.

    public class Person
    {
     public int NumberLegs;
     public string WalkingSpeed;
     public string RunningSpeed;
    
     public void Run()
     {
    
     }
    
     public void Walk()
     {
    
     }
    
     public void Sit()
     {
    
     }
    
    }
    What design pattern does this follow? Where can I find similar examples like this?

    Tuesday, October 30, 2018 10:57 PM

All replies

  • More generally, it's just object oriented programming.

    And maybe you are specifically referring to domain modelling?

    Thursday, November 1, 2018 11:54 AM