Answer Posted / pankaj
A scope resolution operator (::), can be used to define the
member functions of a class outside the class.
It shows the scope resolution operator untangling a mess
made by using the same names for different kinds of entities
base class overridden member function using the scope
resolution operator (: :)
Is This Answer Correct ? | 25 Yes | 10 No |
Post New Answer View All Answers
What is polymorphism in oops with example?
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.
Can main method override?
can we make game by using c
How do you define social class?
Write a c++ program to display pass and fail for three student using static member function
is there any choice in opting subjects like 4 out of 7
What exactly is polymorphism?
What is encapsulation oop?
Can you explain polymorphism?
What is pure oop?
What is the difference between a constructor and a destructor?
What is encapsulation c#?
Why do we need oop?
Who invented oop?