Thread: principles

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    17

    principles

    hey,
    I dont seem to see much information out there on the principles in c++. I was woundering if anyone could give me a little info, or post a link where i could find out some info about the LSP principle, and the OCP principle. I think i understand the Dry principle, but info on that too couldnt hurt.

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    17
    would everyone agree with these?

    a)

    The dont repeat yourself method, most people interpret it as, simply put, dont duplicate code. if you use subroutines you can reuse them later in bigger functions therefore avoiding code duplication.

    b)
    The Liskov substitution principle - the principle that object oriented functions that use pointers or references to a base class must be able to use objects of a derived class without knowing it.

    c) the open closed principle states that a class must be open and closed. meaning extensible by open, and meaning may not be modified by closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good principles needed.
    By elninio in forum C++ Programming
    Replies: 15
    Last Post: 07-20-2008, 10:33 PM
  2. February 1, 2019...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 98
    Last Post: 08-03-2002, 07:24 AM