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 are associate containers?

618


Define pure virtual function?

564


Which format specifier is used for printing a pointer value?

582


What are enumerations?

661


What is the difference between map and hashmap in c++?

561






When do you call copy constructors?

654


What is the best c++ book for beginners?

578


What is c++ namespace?

712


What is abstraction in c++?

684


Is c++ a dying language?

591


Define a nested class. Explain how it can be useful.

637


Define a pdb file.

640


Please explain class & object in c++?

606


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

613


How static variables and local variablesare similar and dissimilar?

565