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 |
What is c++ hash?
What is the benefit of c++?
Is string data type in c++?
Why cout is used in c++?
What is the use of turbo c++?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
What is the full form of dos?
What are the benefits of oop in c++?
How java is different from c and c++?
If there are two catch statements, one for base and one for derived, which should come first?
How to avoid a class from instantiation?
What is a rooted hierarchy?