|
|
|
What is the difference between an ARRAY and a LIST? Answer1 Array is collection of homogeneous elements. List is collection of heterogeneous elements.
For Array memory allocated is static and continuous. For List memory allocated is dynamic and Random.
Array: User need not have to keep in track of next memory allocation. List: User has to keep in Track of next location where memory is allocated.
What is function overloading and operator overloading? Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters . This capability is called function overloading. Operator overloading allows existing C++ operators to be redefined so that they work on objects of user-defined classes
What are the advantages of inheritance? • It permits code reusability. • Reusability saves time in program development. • It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.
What do you mean by inline function? The idea behind inline functions is to insert the code of a called function at the point where the function is called What is public, protected, private? Public, protected and private are three access specifier in C++. Public data members and member functions are accessible outside the class. Protected data members and member functions are only available to derived classes. Private data members and member functions can’t be accessed outside the class. However there is an exception can be using friend classes
|
No responses found. Be the first to respond and make money from revenue sharing program.
|