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



c++ provides classes...and classes do what we want but why then strcut are used...if we say data h..

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

Post New Answer

More OOPS Interview Questions

What is polymorphism in oops with example?

0 Answers  


Do you know about multiple inheritance?

0 Answers   Motorola,


inheritence with example

1 Answers  


Which is the parameter that is added to every non-static member function when it is called?

3 Answers   Accenture,


How would you stop a class from class from being derived or inherited.

18 Answers   Ness Technologies,






what is the application of oops?

8 Answers   IBM,


OOP'S advantages of inheritance include:

1 Answers   Infosys,


How can we use the preprocessor #if and #elseif.

2 Answers  


What is encapsulation with example?

0 Answers  


What is data binding in oops?

0 Answers  


How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


what is oppes

2 Answers  


Categories