Solved

What's the difference between C++ and C++ Object Oriented Design(OOD) Principles ?

Posted on 2014-03-27
3
356 Views
Last Modified: 2014-03-27
What is C++ without OOD ?
What is C++ with OOD?
0
Comment
Question by:naseeam
  • 2
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 39959610
To put it plain and simple: C++ without OOD is an extended version of C whereas C++ with OOD is using C++ the right way.
0
 
LVL 1

Author Comment

by:naseeam
ID: 39959636
If someone has implemented classes in c++, is that C++ with object oriented design ?
0
 
LVL 86

Accepted Solution

by:
jkr earned 300 total points
ID: 39959658
Yes and no. It depends on how you are using them. If you adhere to the description in http://en.wikipedia.org/wiki/Object-oriented_design it's clear what it is about, but if you just have a simgle class in your code that encapsulates some trivial aspect, then you are using classes, but I'd rather not speak of OOD. Yet there is no 'black and white' scenario, the truth is always going to be somewhere in between...
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question