wrong statement about c++
a)code removably
b)encapsulation of data and code
c)program easy maintenance
d)program runs faster
Answer Posted / 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 |
Post New Answer View All Answers
Implement stack operations with pointers with appropriate exception checks.
Do you know what is overriding?
Differentiate between C and C++.
Define private, protected and public access control.
Is recursion allowed in inline functions?
Why null pointer is used?
What does it mean to declare a member function as virtual?
Is it possible to get the source code back from binary file?
Explain the scope of resolution operator.
What are the advantages of c++? Explain
What are manipulators used for?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Why is null pointer used?
What are proxy objects in c++?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?