what is a class

Answer Posted / ranjith jayan

a class is a collection of similar objects. ex: orange is
an object for the class fruits

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call a non virtual function in the derived class by using base class pointer

5252


Why multiple inheritance is not allowed?

581


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1780


What are the three parts of a simple empty class?

1454






What is the importance of oop?

605


What does and I oop mean?

610


What is oops concept with example?

574


What is encapsulation example?

545


What is difference between abstraction and encapsulation?

588


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1696


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1617


How do you explain polymorphism?

586


What is destructor oops?

617


What is debug class?what is trace class? What differences are between them? With examples.

1603