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 difference between pop and oop?
What is polymorphism in oops with example?
What is abstraction in oop with example?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Which is better struts or spring?
What is object and class in oops?
What is a null tree?
officer say me - i am offered to a smoking , then what can you say
What is polymorphism what are the different types of polymorphism?
What are the advantages of polymorphism?
What is methods in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
write string class as your own class in java without using any built-in function
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is class and object with example?