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 |
namespace is working on which compiler?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
what is an qt4 interface?
How to calculate the age from the date of birth by using the program?
What is conditional Compilation?
What is the renewal class?
Can static class have constructor?
What is oops and why we use oops?
Write a program to get the binary tree.
tel me oops defination in single line
What is Object and Class? What are the differences between them?