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 |
What are friend functions?
The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance
What is c++ hash?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
How the delete operator differs from the delete[]operator?
Difference between overloading vs. Overriding
What is virtual constructor paradigm?
What is object slicing and how can we prevent it?
Is map sorted c++?
What is a "RTTI"?
Generally variables are stored in heap memory. When he variables are created in stack?
What are the static members and static member functions?