what is the main difference between c and c++?
Answer Posted / gilbert
C is low level mostly. The idea behind C was to create a
language that was close enough to the hardware so that you
can maximize efficientcy but far enough away from the
hardware so that it was easier to program in that say
assembly. C++ is a high level multiparadigm general purpose
programming language that supports object orientation it is
not an object oriented programming language because an
object oriented programming language forces you to use
object oriented programming like Java or C# in those
languages everythings is an object but C++ not only shows
support for object oriented programming but for generic
programming, polymorphism, inheritance, encapsulation,
procedural programming and multiple inheritance, statically
typed, and free form as well.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is encapsulation used?
Why is polymorphism important in oop?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What language is oop?
What is polymorphism oop?
what is different between oops and c++
why reinterpret cast is considered dangerous?
What are oops methods?
what type of questions
What is polymorphism and types?
What is object and class in oops?
Is oop better than procedural?
What does enum stand for?
What is byval and byref? What are differences between them?
Get me a number puzzle game-program