give me some class & objects examples?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between late binding and early binding.

999


What is c++ mutable?

912


What are pointer-to-members in C++? Give their syntax.

885


What is low level language in simple words?

827


Is overriding possible in c++?

791


Is c++ a good first language to learn?

793


Which should be more useful: the protected and public virtuals?

798


Explain about vectors in c ++?

820


Does c++ have a hash table?

758


Where the memory to the static variables is allocated?

807


Describe Trees using C++ with an example.

874


Which is the best c++ compiler?

811


Write a code/algo to find the frequency of each element in an array?

868


How is static data member similar to a global variable?

865


What is data type in c++?

785