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 is the difference between stack and heap memory?
What are references in c++?
How can a struct in c++ differs from a struct in c?
write a program in c++ to generate imp z y x w v w x y z z y x w x y z z y x y z z y z z
What is a memory leak c++?
What is class definition in c++ ?
What is tellg () in c++?
How one would use switch in a program?
What is a singleton c++?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
What is ifstream c++?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.