What is the difference between class and object?
Answer Posted / kanchi
class is the advance version of structure because it contains the data and functions both so it is wrapped into a single unit called encapsulation.
Object is the instance of class and it always created at run time
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is destructor give example?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
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 type of loop is a for loop?
What is encapsulation in oops?
Why do pointers exist?
What is purpose of inheritance?
What is persistence in oop?
What is polymorphism and why is it important?
2. Give the different notations for the class.\
What is polymorphism what is it for and how is it used?
Why is static class not inherited?
What is constructor in oop?
What is pure oop?