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 static in oop?
What is inheritance in simple words?
How is polymorphism achieved?
What is a function in oop?
What are the 3 principles of oop?
What does and I oop and sksksk mean?
What is for loop and its syntax?
What are the benefits of polymorphism?
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 is the oops and benefits of oops programming?
Can we override main method?
What is difference between inheritance and polymorphism?
What is encapsulation and abstraction? How are they implemented in C++?
What do you mean by abstraction?
What is multilevel inheritance in oop?