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 are classes oop?

0 Answers  


what is the difference between <stdio.h>and "stdio.h"?

5 Answers  


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


Why multiple inheritance is not allowed?

0 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,






what is difference between thread and programme.

1 Answers   NCC,


What is ambiguity in inheritance?

0 Answers  


What is oops and why we use oops?

0 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


Why do we use oops?

0 Answers  


what is ltti

1 Answers   Unisys,


different types of castings

3 Answers   Siemens,


Categories