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 the main feature of oop?
What is ambiguity in inheritance?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
How is polymorphism achieved?
Why do pointers exist?
Can static class have constructor?
Why do we use inheritance?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are classes oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
How Do you Code Composition and Aggregation in C++ ?
What is the use of oops?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
#include