What is Object Oriented programming.what is the difference
between C++ and C?

Answer Posted / sourav

c is a procedural oriented lang & c++ is a oop lang
c can store upto 32 char where as c++ can store 0 to255 char
in c we won't have inheritance ,polymorphism,data hiding &
data abstraction concepts
object oriented prog. introduces the concept of object &
class.In object oriented lang. data member can be made
public, private, & protected. eg:- c++,java, etc.
c++ is advanced form of c. In one
hand c is procedure laugauge where as on other side c is
object oriented. we have some additional keywords in c than
c++.ex:-new etc.c++ also allows 256 char to store.object
oriented programming (oop eg c++)is based on
object;whereas procedure oriented programming <pop eg c) is
a structured programming.pop concentrates more on functions
where as in oop more attention is given to the data rather
than functions.oop deals with realworld problems where as
pop doesnot model the realworld problems.


and in my opinion also , 4th one is the best answer.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is size_type?

558


How can I learn dev c++ programming?

576


What is the difference between method overloading and method overriding in c++?

568


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

665


What is the difference between ++ count and count ++?

595






How would you differentiate between a pre and post increment operators while overloading?

665


Write about the retrieval of n number of objects during the process of delete[]p?

581


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3085


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2100


Explain what you mean by a pointer.

644


What are static type checking?

645


Differentiate between an external iterator and an internal iterator?

578


What is auto used for in c++?

579


What is near, far and huge pointers? How many bytes are occupied by them?

668


Is map ordered c++?

601