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 the difference between a type-specific template friend class and a general template friend class?

658


How can virtual functions in c++ be implemented?

698


Define virtual constructor.

735


How can you quickly find the number of elements stored in a static array?

729


How the endl and setw manipulator works?

649






How do I write a c++ program?

687


Why do we use templates?

698


Explain the extern storage classes in c++.

646


What is the best c++ book?

802


How do I exit turbo c++?

672


What is a loop? What are different types of loops in c++?

692


What is buffer and example?

614


When should we use multiple inheritance?

700


What is the C-style character string?

699


What is the identity function in c++? How is it useful?

650