what is the main difference between c and c++?
Answer Posted / siva
*C is a structure oriented programming. C++ is an object oriented programming. In c++ we can use OOPS concepts like Abstraction,Encapsulation,Inheritance and Polymorphism. So we can Hide data using Encapsulation but we can't in C.
*We can reuse our coding using Inheritance concept but not in C.
* We can Create Same function name with different functionality by using polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can static class have constructor?
Why do we use oops?
What do you mean by Encapsulation?
Who invented oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is the advantage of oop over procedural language?
What is advantage of inheritance?
Can abstract class have normal methods?
What is polymorphism programming?
What are oops methods?
What is protected in oop?
what are the ways in which a constructors can be called?
what type of question are asked in thoughtworks pair programming round ?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are benefits of oop?