What is a scope resolution operator?

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


Please Help Members By Posting Answers For Below Questions

What is polymorphism in oops with example?

539


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.

649


Can main method override?

593


can we make game by using c

3444


How do you define social class?

611






Write a c++ program to display pass and fail for three student using static member function

2824


is there any choice in opting subjects like 4 out of 7

1739


What exactly is polymorphism?

616


What is encapsulation oop?

583


Can you explain polymorphism?

591


What is pure oop?

603


What is the difference between a constructor and a destructor?

623


What is encapsulation c#?

613


Why do we need oop?

679


Who invented oop?

664