what is polymorphism and C++ ?
141641
Cplusplus is a computer programming language that my fiance learned in high school.  Are these words supposed to be related?  Were they in the same context?
449935
There is no such thing as an Abstract Interface.\n\nInterfaces are not supported with (ISO) C++. You should use an abstract class with only virtual methods.\n\nA .tlb file is (I'm guessing) a Type Library. These are used with COM/ActiveX controls. \n\nType of Visual Studio project: .... a C++ project I guess\n\nIf you are using managed C++, you can just add a reference to the COM object, which should add a RCW you can use (a wrapper around the object referenced). This will do most housekeeping for COM/ActiveX objects for you.
642028
try this it might help you\n\nhttp://techweb.konicabt.com/scripts/web_access.cgi?FUNC=LOGIN&LOGIN_USER_ID=kmweb&LOGIN_PASSWORD=enduseru! \n\n\n\n Visual C++ Concepts: Building a C/C++ Program   \n\nCompiler Error C2351\nobsolete C++ constructor initialization syntax\n\nIn a new-style initialization list for a constructor, you must explicitly name each direct base class, even if it is the only base class.\n\nThe following sample generates C2351:\n\n// C2351.cpp\nclass B\n{\npublic:\n   B() : ()   // C2351\n   {\n   }\n\n   // use the following syntax instead\n   /*\n   B()\n   {\n   }\n   */\n};\n\nint main()\n{\n}\n\n\n\n\nCompiler Error C2351\nobsolete C++ constructor initialization syntax\n\nA direct base class was not named in the constructor.\n\nThe new-style initialization list for a constructor member requires each direct base class to be explicitly named, even if it is the only base class in the list.\n\nThe following is an example of this error:\n\nclass B\n{\npublic:\n   B();\n   B( int );\n};\nclass D : public B\n{\npublic:\n   D( int i ) : ( i ) {}   // error, B was not named\n   D( int i ) : B( i ) {}  // OK\n};\n\n\n\nI sure hope some of this helps you and Good Luck!
673244
Function overloading doesn't affect a programs execution speed in any way because the overloads are resolved at compile time which is virtually free.\nIt makes your program more understandable. Take an example.\nYou want to convert an integer into its equivalent ascii representation. There are many integral types in every major language (C++, Java, C#, VB.Net). Tell me what would you like to have:\nchar* itoa(int);\nchar* ltoa(long);\nchar* stoa(short);\nchar* lltoa(long long);\n\nor the simplified versions:\n\nchar* itoa(int);\nchar* itoa(long);\nchar* itoa(short);\nchar* itoa(long long);\n\n?
1121450
No. C and C++ are two different languages with different compilers.\nHowever, C is (almost) a subset of C++ and therefore a C++ compiler might be used to compile C++.
794946
cplusplus.com for C++ programming stuff
409206
The short answer, C++ is object-oriented C.\nC# is Microsoft's answer to Java.\n\n\nC++ has classes and objects build into the languge.\n\nC# has no pointers, but does have garbage collection.\n\nI would learn C++ first.
594479
Non-virtual member functions are resolved statically. That is, the member function is selected statically (at compile-time) based on the type of the pointer (or reference) to the object. \n\nIn contrast, virtual member functions are resolved dynamically (at run-time). That is, the member function is selected dynamically (at run-time) based on the type of the object, not the type of the pointer/reference to that object. This is called "dynamic binding." Most compilers use some variant of the following technique: if the object has one or more virtual functions, the compiler puts a hidden pointer in the object called a "virtual-pointer" or "v-pointer." This v-pointer points to a global table called the "virtual-table" or "v-table." \n\nThe compiler creates a v-table for each class that has at least one virtual function. For example, if class Circle has virtual functions for draw() and move() and resize(), there would be exactly one v-table associated with class Circle, even if there were a gazillion Circle objects, and the v-pointer of each of those Circle objects would point to the Circle v-table. The v-table itself has pointers to each of the virtual functions in the class. For example, the Circle v-table would have three pointers: a pointer to Circle::draw(), a pointer to Circle::move(), and a pointer to Circle::resize(). \n\nDuring a dispatch of a virtual function, the run-time system follows the object's v-pointer to the class's v-table, then follows the appropriate slot in the v-table to the method code. \n\nThe space-cost overhead of the above technique is nominal: an extra pointer per object (but only for objects that will need to do dynamic binding), plus an extra pointer per method (but only for virtual methods). The time-cost overhead is also fairly nominal: compared to a normal function call, a virtual function call requires two extra fetches (one to get the value of the v-pointer, a second to get the address of the method). None of this runtime activity happens with non-virtual functions, since the compiler resolves non-virtual functions exclusively at compile-time based on the type of the pointer.
374089
It has 2-bytes code, so you need to examine two consequent bytes. It is not C++ specific, it is PC-specific.
60572
The typical rule is that if your class has at least one virtual function, you should always declare your class destructor as virtual.\n\nClasses with virtual functions are usually designed to be used as base classes for other classes and because you can assign a pointer to a derived class to a base class pointer, a virtual destructor is needed to make sure that the derived classes destructor is called.\n\nSee the section (and code example) entitled "Why are destructors not virtual by default?" in Bjarne Stroustrup's (creator of the C++ language) C++ FAQ at the link below.
747743
Can not give you the code or you shall not learn... so please see Page 534 of "Mastering C++" by  R Venugopal, Rajkumar & T Ravishankar  from Tata McGrawHill.\n\nI hope this will help you...
758524
In Java, everything is an object. This way, true encapsulation is achieved. Java is more strongly typed than C++. Java also has stronger enumerated types and the ability to synchronize threads.\n\nWith Java's swing library, it makes it easier to develop GUI applications. A single window can be created by using a few lines of code with Java rather than hundreds for C++...
678911
Check out the site at http://www.pscode.com - I don't do C++ but I use that site all the time for Visual BASIC stuff I work on.
262740
C++ has classes, C does not. C++ is object-oriented, but it also contains all the functionality that C does.\n\nC requires you to declare all your variables at the top of a function, C++ allows you to declare them whenever you want.
390812
OOP: OBJECT ORIENTED PROGRAMMING.\n\nThe whole idea of OOP is to be able to encapsulate data and methods (or member functions as they are called) to protect them.\n\nThis is done by creating a class and letting your class hold information. Then you can just reference the class in any program and use its functionality. This makes for a powerful programming capability and also promotes code reuse. often times you can just reuse an entire class or even use a class after you have modified it a bit. The .NET framework is based on this idea of using various classes to build applications rapidly.\n\nI'd suggest you pick a book up on C++ the one i've used for many years is C++ how to program by Deitel and Deitel. They should have an elaborate section on Classes and Inheritance and the whole OOP&D subject in general.
9280
Syntactically they are very similar, but C++ is a variant of C that incorporates OO (object oriented) concepts.  Simply put, C++ allows programmers to divide their programs into reusable modules which can be utilized by other programmers in their own programs, thus improving collaboration and quality by promoting reuse of code.  There's really nothing you can do with C++ that you can't do with C, but C++ is more flexible in the way you can reuse your code.
503208
Bjarne Stroustup "Design and Evolution of C++" and others by him, the inventor of C++