what is the main difference between c and c++?
Answer Posted / balakrishna
c is a procedure oriented program.where as c++ is a object
oriented program.c++ is advanced of c.some draw backs in c
are rectified and introduced in c++.in c++ we use mostly
classes.in c the variables are used in program are used by
any function in the program so there is no security in
c.where as in c++ our data is secured by declaring private.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Can an interface inherit a class?
Why we use classes in oop?
What is abstraction in oops?
what type of question are asked in thoughtworks pair programming round ?
What is object and example?
What is overriding in oops?
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 does oop mean in snapchat?
Can you inherit a private class?
What are main features of oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is the advantage of oop over procedural language? What is methods in oop? What is polymorphism and why is it important? if i have same function with same number of argument but
defined in different files. Now i am adding these two files
in a third file and calling this function . which will get
called and wht decide the precedence?