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
What is new keyword in oops?
what is graphics
What are the types of abstraction?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What are oops methods?
How does polymorphism work?
What is interface in oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Can private class be inherited?
What are the 3 principles of oop?
What is abstraction and encapsulation?
What is difference between abstraction and encapsulation?
What is overloading in oops?
How do you explain polymorphism?
What makes a language oop?