![]() Related Questions Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. Ø A Class Latest Answer : Class is a combination of data member & member function where object is used for calling function In class we declare In object we call ... The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange Latest Answer : inline function is a function which extends the code when it is invoked. Otherwise is skip the code. ... Virtual destructors: If an object (with a non-virtual destructor) is destroyed explicitly by applying the delete operator to a base-class pointer to the object, the base-class destructor function (matching Latest Answer : Virtual constructor is not build-in C++ feature but it doesn't mean its not used by devs in code and in conversations. There are many other things that doesn't exist in particular language yet, people find ways around to solve it (SingleTon, Virtual Constructor, ... Write a program to dynamically create a matrix( no of rows and columns wud be provided by user at run time). Then ask a user to input elements and the nprint those elements. Latest Answer : Any mistakes like syntax error, using a variable which is not declared these will be compile time errors. If any Dll is missing in the program that will come under linking error. If you have multiple main() functions in different files in the same project ... Read Answers (1) | Asked by : SR dynamic_cast checks for datatype at runtime but static_cast checks at compilation. Is this the only diffrence b/w them or is there anything else? at the time of programming which shud we prefer to call. Latest Answer : static_cast is used for all conversions that are well defined.Like float to int. double to int etc.dynamic_cast is used for type-safe downcasting. For this one must be working with a truly polymorphic hierarchy.(i.e with virtual functions).downcasting ... Can Virtual destructor is used in derived classes?What is the answer to the following question?Class Base {Public:Base();Virtual ~Base();};Class Derived : protected Base {Public:Virtual ~Derived();};Int Latest Answer : Choice 4 A pointer to a Base class cannot point to an instance of a Derived class. class cannot point to an instance of a Derived class. This the the only truthful answer. ... Hi,Iam very much new to programming and C++please help meI have an application that uses socket++ classes on Unix (AIX) environmentI have included #include in two of my .cpp filesand I have socket++ source Latest Answer : hi,Does the environment variable PATH contain the path of the folder in which the header files are present??If not, then either modify the PATH variable, or use -I option to specify the location of header files.eg. cc -I$HEADER_FILES_PATH -o myProgram ... class ABC { public: ABC(int i = 0) { val = i;} int GetVal() {return val;} void SetVal(int i) {val = i;} private: int val;}void DoubleABC(ABC& Latest Answer : The class has a missing semi-colon ';' following the closing brace. So the answer should be: E: None of the above ... class ABC { public: ABC(int i = 0) { val = i;} int GetVal() {return val;} void SetVal(int i) {val = i;} private: int val;};void DoubleABC(ABC& Latest Answer : There is no problem ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||