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 |
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Mention the storage classes in c++.
What is :: operator in c++?
What is polymorphism in c++? Explain with an example?
Does a derived class inherit or doesn't inherit?
how to explain our contribution in the project?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Are strings mutable in c++?
Which operator can not be overloaded in C++?
What's c++ used for?
write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX
What is iterator in c++?