Latest Answer: Object is a instance of a class . say for example if car is class ,maruti car and matiz car are objects of a class . ...
Latest Answer: Poly [many] morph [form] as the name says many forms is supported. Two types of Polymorphism are operator overloading and function overloading.operator overloading => +operator can be implemented to add numbers or string or even if one wishes to subtract ...
Latest Answer: Here is my solution:#include #include #include using namespace std;string toBinary(unsigned int num){ stringstream s; for(int i=0; i
Latest Answer: Major Difference:Aggregation - Without whole part can exist.Composition - Without whole part can't exit.Aggregation -
One class is a kind of another class.Composition - One class has another classAggregation - In Design, If you remove "whole" part ...
Latest Answer: Command line arguments can be accessed by using a string type and integer type variables as the main function arguments. The string includes all what u typed in the command line(eg:hello.exe jijo nijesh). The int variable shows the no of words in it. ...
Latest Answer: In C++, assignment and copy construction are different because the copy constructor initializes uninitialized memory, whereas assignment starts with an existing initialized object. If your class contains instances of other classes as data members, the ...
Latest Answer: In Linux/Unix , we have the header file dirent.h.This .h file contains the direcory manipulation functions Some of the functions are opendir,closedir,readdir. ...
Latest Answer: In linux there is a memory debugging tool valgrind.With the help of valgrind, you can easily check the memory allocation or memory deallocation. ...
Latest Answer: pass multiple variables to the function as formal parameters ... function will actually set those values (output variables). ...
Latest Answer: Arrays have to difine with fixed size it will not grow dynamically , vector size can be increased bydynamically and vectors are synchronized.yaa always right.vector is a standard template library in C++. Vector size can be increased dynamically and stores ...
View page << Previous 5 6 7 8 [9] 10 11 12 13 14 Next >>

Go Top