what is the main difference between c and c++?
Answer Posted / jagan
c is a procedural programmiing language and c++ is object
oriented language.
| Is This Answer Correct ? | 0 Yes | 0 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 are the types of abstraction?
What are the three main types of variables?
what are the different types of qualifier in java?
Can destructor be overloaded?
Why is there no multiple inheritance?
What is abstraction encapsulation?
Is oop better than procedural?
What are the three parts of a simple empty class?
Why do we use polymorphism in oops?
Are polymorphisms mutations?
What is abstraction in oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we use inheritance?
What is encapsulation with example?