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 abstract class ? when is used in real time ? give a exp
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
write a program to find 2^n+1 ?
What is abstraction with example?
What is object and example?
Program to read a comment string
What is the main difference between C++ and Java
What is the types of inheritance?
What is inheritance in oop?
How is data security provided in Object Oriented languages? ?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
How many human genes are polymorphic?