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 and I oop mean?
what is the difference between class and structure in C++?
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
what is the difference between ERROR and EXCEPTION?
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
Why a "operator=(...)" when there is a copy ctor?
What is object and class in oops?
What is advantage of inheritance?
Why do we need polymorphism in c#?
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
difference between structure and union.
Why is polymorphism important in oop?