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 is object in oop?
What are the advantages of polymorphism?
How do you define a class in oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why is encapsulation used?
What do you mean by abstraction?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is polymorphism explain its types?
What do you mean by overloading?
What is the important feature of inheritance?
What are oops methods?
What are benefits of oop?
What is encapsulation c#?
What is polymorphism programming?
Why is abstraction needed?