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

Thread: Good design?

Threaded View

  1. #1
    Join Date
    Mar 2007
    Posts
    155

    Good design?

    Is the below design OK?

    Code:
        public abstract class MyAbstract
        {
            public Dictionary<int, ushort> Table
            {
                get;
                protected set;   
            }
    
            protected MyAbstract()
            {
                PopulateTable();
            }
    
            protected abstract void PopulateTable();
        }
    Table will be initialized inside PopulateTable() by it's derived classes;
    Last edited by thomus07; April 16th, 2010 at 03:24 AM. Reason: added more details :)

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