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 / 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 |
What is basic concept of oop?
Why u change company?
What is overloading and its types?
What is oops in simple words?
what is the size of an empty class
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What are objects in oop?
What is the difference between and interface and an abstract class ?
4 Answers IBM, Infosys, Ness Technologies,
What are the three parts of a simple empty class?
why the memory allocated with new cant be freed using free()
What is destructor in oop?
what is runtime polymorphism? For the 5 marks.