473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

object orientation concepts in C++

can any one tell me the concepts of object orientation programming in C++...im a newbie,plz help me
Aug 3 '07 #1
7 1269
JonLT
41
can any one tell me the concepts of object orientation programming in C++...im a newbie,plz help me
well thats quite a mouthfull. OOP is so many things and can be done in very different ways. You'd be much better of with a book than with a few posts on the subject in here.
Aug 4 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
Object-oriented programming is substituting a specific object for a general object. All the code is written expecting a general object. When a method is called on the expected general object, it is the method of the specific object that is actually called.

Read up on polymorphism.
Aug 4 '07 #3
JosAH
11,448 Expert 8TB
Object-oriented programming is substituting a specific object for a general object. All the code is written expecting a general object. When a method is called on the expected general object, it is the method of the specific object that is actually called.

Read up on polymorphism.
And for a thorough explanation w.r.t your paragraph, knowing about the
Liskov Substitution Principle might come in handy too.

kind regards,

Jos
Aug 4 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
Liskov Substitution Principle
By this you mean C++ duck typing?
Aug 4 '07 #5
JosAH
11,448 Expert 8TB
By this you mean C++ duck typing?
No not really; it's more or less the other way around: if it *can* walk like a duck
and it *can* talk like a duck it *can* be a subclass of a duck; that's what that
Liskov Substitution Principle is all about, i.e. it just gives the 'constraint' *when*
a class can be a subclass of another class.

kind regards,

Jos
Aug 4 '07 #6
weaknessforcats
9,208 Expert Mod 8TB
it's more or less the other way around: if it *can* walk like a duck
and it *can* talk like a duck it *can* be a subclass of a duck; that's what that
Liskov Substitution Principle is all about
Got it. Thanks.

Plus extending to 20.................. characters so this thing will post.
Aug 4 '07 #7
JosAH
11,448 Expert 8TB
Got it. Thanks.

Plus extending to 20.................. characters so this thing will post.
add spaces
Aug 4 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
4
by: tvmaly | last post by:
Does anyone know if it is possible to determine if an image is horizontal/vertical and color or black & white using the python image library? I have been searching this news group and the...
65
by: Roger Smythe | last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts such that these component parts represent higher levels of conceptual abstraction, and are...
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
11
by: Vishal Naidu | last post by:
i m a college student in my second year..... my queston is.. is it really possible to write object oriented code in C ? and if yes how do we achieve abstration, polymorhism , hierarchy etc. in C
9
by: Sean McKaharay | last post by:
Since no one can answer the following question: I have a issue. I need to create a command line application/or windows application that will take 2 parameters and will print to the default...
73
by: Water Cooler v2 | last post by:
I am new to PHP, just one day new. But I am otherwise a seasoned programmer on many other languages like C, VB 6, C#, VB.NET, Win32 platform and have some tiny bit experience in MFC, C++, Python. ...
23
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object...
0
by: CoreyReynolds | last post by:
Hey all, I have a piece of code that dumps a bunch of data into a spreadsheet. Also rearranges it into a pivot table and then graphs the pivot table as well so my boss can get a clear view of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.