GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 167 of 258    Print  
What is a scope resolution operator?

  
Total Answers and Comments: 1 Last Update: January 25, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 25, 2006 07:29:26   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: What is a scope resolution operator?

A scope resolution operator resolves scope ambiguity in cases where a base class and a derived class both define data member or function with the same name.

Most generally a scope resolution operator is required when a data member is redefined by a derived class or an overriden method of the derived class wants to call the base class version of the same method.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : In C++, assignment and copy construction are different because the copy constructor initializes uninitialized memory, whereas assignment starts with an existing initialized object. If your class contains instances of other classes as data members, the ...

Latest Answer : "Postincrement is usually less efficient than preincrement because it has to remember & return its original value"That is, apart from also doing the increment operation, Postincrement has to remember & return its original value.Exceptional ...

Latest Answer : Do any operation symbolizing the operator in your class.you can add/subtract/multiply/divide or do any other operation for +operator() the choice is entirely yours.Freedom you see ...

Describe about storage allocation and scope of global, extern, static, local and register variables?

Latest Answer : XOR Operator is right. XOR the given bit with 1 if the bit is 1 then 0 is the o/p else 1 is the o/p. ...

Latest Answer : Bitwise and - & is the correct answer. n=n & 0177 ...

Latest Answer : The bitwise XOR ^ sets a one in each bit position where its operands have different bits and zero where they are same. ...

Latest Answer : One's complement ~ ...

Latest Answer : A scope resolution operator resolves scope ambiguity in cases where a base class and a derived class both define data member or function with the same name.Most generally a scope resolution operator is required when a data member is redefined by a derived ...

Latest Answer : Function overloading refers to having two or more methods in the same scope which have the same name but different signature. (Note that a function signature includes name of the function, ordered list of parameter data types. It DOES NOT include the ...


 Sponsored Links

 
Related Articles

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Dereference Operator

C Dereference Operator In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail mosgoogle center It is possible to access the value of variables pointed by the pointer variables using pointer This is performed
 

C++ Operator Overloading Part II

C Operator Overloading Part II Operator overloading is a very important aspect of object oriented programming Binary operators can be overloaded in a similar manner as unary operators In this C tutorial you will learn about Binary Operating Overloading explained along with syntax and example mosgoog
 

sizeof Operator

What is sizeof operator? sizeof will return the number of bytes reserved for a variable or data type. The sizeof operator is a compile-time operator that returns an integer value. In other words since sizeof is a compile time operator, when used in a expression, it does not get compiled into executa
 

Modulus Operator

What is the functionality and restrictions of Modulus Operator? When a division is performed, the remainder of the operation is given by modulus operator. The modulus operator is denoted in c by symbol %. For instance we have two integer values x and y, the operation x % y called as x modulus y give
 

Operator, Operand and Expression in C

Operator, Operand, and Expression in are symbols which take one or more operands or expressions and perform arithmetic or logical computations. Types of operators available in C are as follows: Arithmetic Assignment Logical/relational Bitwise These have operators under each
 

Prefix and Postfix Operator

How does the prefix and postfix operator on expression? The operators present in prefix and postfix are prefix increment operator denoted by ++ prefix decrement operator denoted by -- postfix increment operator postfix decrement operator The difference between the two is that i
 

Sample Resume - Computer Operator Resume

Sample Resume Computer Operator Resume This article provides a sample resume format for those applying for the post of Computer Operator You can make use of this sample resume format while preparing your actual resume Computer Operator Resume mosgoogle Computer operator takes important tasks in an o
 

The Role of a Computer Operator

The Role of a Computer Operator Computers play a large part in our world today They are used for various personal and business reasons and many individuals would find it difficult to live without them For this reason computer related jobs are quite prominent in the job market There are various posit
 

Scope of Variables in Function

Scope of Variables in Function In this C Tutorial you will learn about Scope of Variables in Function viz Local Variables Scope of Local Variables Global Variables Scope of Global Variables mosgoogle The scope of the variables can be broadly be classified as Local Variables Global Variables Loca
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape