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

Define a pointer to a data member of the type pointer to pointer?

566


Can we use this pointer in a class specific, operator-overloading function for new operator?

607


What is the difference between structures and unions?

578


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

611


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

603






Is facebook written in c++?

556


What is the standard template library (stl)?

612


Which c++ compiler is best?

575


what is upcasting in C++?

712


What is cin clear () in c++?

601


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1480


You run a shell on unix system. How would you tell which shell are you running?

648


How would you find out if a linked-list is a cycle or not?

538


What are the benefits of oop in c++?

580


Is c++ slower than c?

567