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

Do class declarations end with a semicolon? Do class method definitions?

869


Where Malloc(), Calloc(), and realloc() does get memory?

826


What is the average salary of a c++ programmer?

785


What is a memory leak c++?

785


What are the advantages of using a pointer?

821


how to connect with oracle 9i with server in socket program in c/c++

2093


Explain the pure virtual functions?

857


What is the best ide for c++?

799


What are guid? Why does com need guids?

798


What is the best way to declare and define global variables?

950


What is the full form of ios?

761


Describe the role of the c++ in the tradeoff of safety vs. Usability?

962


Describe protected access specifiers?

911


Can we define a constructor as virtual in c++?

820


What is a v-table?

891