What is the difference between class and structure?
Answer Posted / konankiswetha
class is a slow access because of heap memory. But struct
is a faster in access because of stack memory.
values are initialize at the time of declaration in class
but not in struct.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is difference between pop and oop?
What is multilevel inheritance?
Why is abstraction needed?
What is inheritance and how many types of inheritance?
What is property in oops?
What is multilevel inheritance in oop?
What is advantage of inheritance?
Get me an image implementation program.
What is oops with example?
What is constructor in oop?
How to call a non virtual function in the derived class by using base class pointer
Explain the concepts involved in Object Oriented programming.
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.
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.