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 difference between new and malloc?
what is inline function?
What is polymorphism what are the different types of polymorphism?
What do you mean by binding of data and functions?
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
How to hide the base class functionality in Inheritance?
Is html an oop?
What polymorphism means?
Why do while loop is used?
What is Hashing and how is it done? Pictorial form?
What is advantage of inheritance?
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram