CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 53

Threaded View

  1. #31
    Join Date
    Nov 2008
    Location
    United States
    Posts
    81

    Re: Object Validation

    But now I'm confused because the Validator base class can't have the same methods?

    Code:
        public abstract class Validator
        {
            public virtual void ValidateString(string m_string) { }
            public virtual void ValidateInt(int m_int) { }
        }
    Are you saying the Validator class should just be an empty class?


    Edit:

    If this is correct then I need to modify the base-class:

    Code:
        public class Validator
        {
            public virtual void Validate(object o) { }
        }
    Last edited by Three5Eight; December 9th, 2008 at 08:31 PM.
    Three5Eight
    Using: MS C# 08 EE, MS SQL 05 EE, C++ .Net 08 EE, Vista Home Premium, XP Home

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

Featured