What is a class?

Answer Posted / kumar vishal

In general a class is a group of objects. for example
mango,apple, banana, grapes etc. is a group of fruits.

But in oops concept, a class is a collection of member data
and member function.

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

631


Who invented oop?

659


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2761


Give two or more real cenario of virtual function and vertual object

1853


What is inheritance in oop?

604






What is overriding vs overloading?

584


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1148


When not to use object oriented programming?

572


What is the full form of oops?

612


Explain virtual inheritance?

684


What are the benefits of interface?

582


Is oop better than procedural?

575


Why do we use oop?

605


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2037


What are the features of oop?

641