What are class and object in C++?



What are class and object in C++?..

Answer / hrpynux@gmail.com

A Class in object oriented programming is a blueprint or prototype that defines the variables and the methods (functions) common to all Java Objects of a certain kind. An object in OOPS is a specimen of a class. Software objects are often used to model real-world objects you find in everyday life.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the benefit of encapsulation?

0 Answers  


What is the default width for ouputting a long integer using the insertion operator?

0 Answers  


What are the types of pointer?

0 Answers  


What is iterator c++?

0 Answers  


Why struct is used in c++?

0 Answers  






What is a set in c++?

0 Answers  


Is atoi safe?

0 Answers  


In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


What is a static element?

0 Answers  


Are iterators pointers?

0 Answers  


Explain function overloading and operator overloading.

0 Answers  


What is the difference between set and map in c++?

0 Answers  


Categories