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
What are the two different types of polymorphism?
What is coupling in oop?
What is balance factor?
What is the difference between a constructor and a destructor?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Can main method override?
What is an example of genetic polymorphism?
what's the basic's in dot net
Why it is called runtime polymorphism?
Can destructor be overloaded?
#include
Where is pseudocode used?
What is oops with example?
What is a class oop?
What is encapsulation in oops?