wrong statement about c++
a)code removably
b)encapsulation of data and code
c)program easy maintenance
d)program runs faster
Answers were Sorted based on User's Feedback
Answer / gucman
I suppose it should be a) Code reusability not
removability :)
So the wrong statement is d) program runs faster - c++ is
not faster than say C, pascal or other compiled code (it
has however very good compilers that make very aggressive
optimisations so it may look like it is faster)
a) code reusability - it's true as you can inherit the
class and use its properties and functions again modifying
it to your needs in a derived class
b) encapsulation of data and code - you can declare member
variables (data) and member functions (code) as private,
protected to encapsulate it and forbid its use outside
class instances / instances of inherited classes
c) program easy maintenance - it is true (or at least
should be true) for every oo language. If you are unsure
about this try maintenance large C program
| Is This Answer Correct ? | 10 Yes | 1 No |
How should runtime errors be handled in c++?
What is the advantage of an external iterator.
Can you please explain the difference between using macro and inline functions?
How is computer programming useful in real life?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Is arr and &arr are same expression for an array?
What is realloc() and free()? What is difference between them?
What is the Difference between "vector" and "array"?
15 Answers Covansys, Gambit, TCS, Wipro,
What are protected members in c++?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What is different in C++, compare with unix?
Comment on assignment operator in c++.