c++ provides classes...and classes do what we want but why
then strcut are used...if we say data hiding... it is also
provided by c++ in structs then why to prefer clasess
Answer Posted / rasagna
resuability is the excellent concept in cpp. we can reuse
the functions many times.but in c we have not that type of
facility. classes gives redability and data security
(because of access specifier)to program. oop(object
oriented program) gives class as high in cpp.because of
inheritance,polymorphism,data independence.encapsulation.
At last what i want to say is
c + extra reatures = c++.
c + class = c++
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Why interface is used?
to find out the minimum of two integer number of two different classes using friend function
why reinterpret cast is considered dangerous?
Why is polymorphism important in oop?
Why is oop better than procedural?
Why do while loop is used?
What is interface? When and where is it used?
class type to basic type conversion
What is inheritance write a program to show use of inheritance?
What is advantage of inheritance?
what is different between oops and c++
What does oop mean in snapchat?
What is encapsulation oop?
What is abstraction and encapsulation?
What is persistence in oop?