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 |
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
Can we create object of class with private constructor?
what is namespace? what are the uses of namespace?
What is an object?
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
what is graphics
How do you define social class?
What is the benefit of oop?
What Is a Polymorphism? How many types of polymorphism and whats that use in application?
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
What type of loop is a for loop?