give me some class & objects examples?



give me some class & objects examples?..

Answer / divyaja

Sometimes, a programmer will want to
define a custom "thing" and the operations
that can be performed on that "thing"
• A class is the definition
• An object is a particular instance of a class
• Classes contain
– data, called members
– functions, called methods

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

0 Answers  


What are the implicit member functions of class?

0 Answers  


Explain the use of virtual destructor?

0 Answers  


Explain the concept of dynamic allocation of memory?

0 Answers  


Explain data encapsulation?

0 Answers  






Show the declaration for a static member variable.

0 Answers  


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

0 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


Why do we use vector in c++?

0 Answers  


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

0 Answers  


What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?

2 Answers   Intel,


What is an incomplete type?

1 Answers  


Categories