what is the main difference between c and c++?
Answer Posted / rajendra kumar jena
C is a procedural Language, but C++ is a object oriented
language.
* C employs top down approach, but c++ employes buttom up
approach.
* Here in C, when ever we are writing a program, the data
are not secured from the outside world. but in C++ data are
secured from the outside world.
* C give emphasis in algorithims and functions, but C++
give emphasis on the data and objects.
* In C we are using #include<stdio.h> as header file, but
in C++ we are using #include<iostream.h> as header file.
| Is This Answer Correct ? | 480 Yes | 71 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 the purpose of enum?
What does <> mean pseudocode?
What are two types of polymorphism?
Why is polymorphism needed?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is Difference Between Inheritance and creating object
and getting data? means
Class A extends B{
B.getMethod();}
(OR)
Class A{
b obj=new B();
obj.getMethod();
} What do you mean by abstraction? What are the 4 pillars of oop? What is class in oop with example? 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?
I have One image (means a group photo ) how to split the
faces only from the image?............ please send the
answer nagadurgaraju@gmail.com thanks in advace...
officer say me - i
am offered to a
smoking , then what
can you say How do you use inheritance in unity? What is abstraction in oop with example?