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


Please Help Members By Posting Answers For Below Questions

What is c++ runtime?

735


What is the use of pointer in c++ with example?

641


What are namespaces in c++?

695


Is eclipse good for c++?

621


How do you declare A pointer to function which receives an int pointer and returns a float pointer

775






What are guid?

792


What is iostream in c++ used for?

635


What are the advantages of early binding?

700


What is heap sort in c++?

707


Difference between overloading vs. Overriding

692


What are the advantages of using pointers in a program?

759


Is map ordered c++?

686


Why is c++ not purely object oriented?

669


What's the best free c++ profiler for windows?

716


What does floor mean in c++?

672