Solved

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

Posted on 2014-03-27
3
352 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
 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now