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

How do you declare a set in c++?

541


What is virtual function? Explain with an example

592


why is c++ called oops? Explain

584


What is stream and its types in c++?

564


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

838






What jobs can you get with a c++ certification?

588


What is the use of vtable?

674


What would happen on forgetting [], while deallocating an array through new?

638


Is c++ a software?

731


Explain how functions are classified in C++ ?

811


What is buffer and example?

527


What are the uses of typedef in a program?

616


Write a program to show polymorphism in C++?

636


what are the decision making statements in C++? Explain if statement with an example?

656


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

644