what is the main difference between c and c++?
Answer Posted / chandrahas dhiraj, delhi
1) C is procedure oriented programming while C++ is object
oriented programming.....
2) C++ is C programming + inheritence + dynamic linking...
3) After the increment The C became C++...
| Is This Answer Correct ? | 17 Yes | 28 No |
Post New Answer View All Answers
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 is new keyword in oops?
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
c++ program to swap the objects of two different classes
How is class defined?
What is property in oops?
What polymorphism means?
What are the three main types of variables?
what are the realtime excercises in C++?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is the difference between inheritance and polymorphism?
Why do we use class in oops?
Whats oop mean?
What is oops?what is its use in software engineering?
Why is oop useful?