what is the difference between class and object?

Answer Posted / s.jagadeeswari

Class is just a template. It does not allocate memory
space. When instantiate the object, allocates the memory
space

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multilevel inheritance in oop?

786


What is the main purpose of inheritance law?

965


What is polymorphism and why is it important?

802


what is the sylabus for priliminaries?

1935


What exactly is polymorphism?

889


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1640


Why is polymorphism needed?

811


write a program that takes input in digits and display the result in words from 1 to 1000

2208


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.

957


What is encapsulation in oop?

809


What are the 3 principles of oop?

853


How oops is better than procedural?

849


Why do we need polymorphism in c#?

902


What is object in oops?

843


write knight tour problem which is present in datastructure

2399