Answer Posted / sanjith
Actually,
*Class is a collection of general declarations for data members and member functions ,that means it doesnot hold any memory.
*when we give certain values to a class ,objects are created.
that means a memory is allocated when objects are created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is multilevel inheritance explain with example?
What is the difference between static polymorphism and dynamic polymorphism?
write a program to find 2^n+1 ?
Can an interface inherit a class?
What is debug class?what is trace class? What differences are between them? With examples.
What is the difference between a constructor and a destructor?
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.
What are the features of oop?
State what is encapsulation and friend function?
What polymorphism means?
What is class and example?
Why is oop useful?
What is difference between oop and pop?
What are oops functions?
Why it is called runtime polymorphism?