Can we call a base class method without creating instance?
Answer Posted / nk
Onlu static methods can be called without creating any
instance of the class.
Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
Explain the advantages of inheritance.
Is this job good for future? can do this job post grduate student?
What is an advantage 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 encapsulation selenium?
What is byval and byref? What are differences between them?
What is encapsulation with example?
Why is oop better than procedural?
What do you mean by variable?
Explain virtual inheritance?
What is a class and object?
What are the 4 main oop principles?
What is polymorphism give a real life example?
class type to basic type conversion
What is inheritance in oop?