What is scope resolution operator
Explain what is meant by the term scope resolution operator?
Expert
a) Scope resolution operator is used in order to uncover the hidden variables. It also enables access to the global version of the variables.
For example:
#include<iostream. h> int m=10; // global variable m void main ( ) { int m=20; // local variable m cout<<”m=”<<m<<”\n”; cout<<”: : m=”<<: : m<<”\n”; }
output: 20 10 (: : m access global m)
b) Scope resolution operator is also used in order to describe the function outside the class.
Syntax:
Return type <class name> : : <function name>
Eg:
Void x : : getdata()
Describe the various forms of Tourism with examples. 25 Describe the various forms of Tourism with examples. 25
What is encapsulation and data abstraction?
All Specifications to be covered according to the paper. Programming to be done only in C,C++ or java
Write a code in a c++/java for the automaton distributed in the class which accepts keywords(cat,bat,cab). Create an input file with these words may be two or three copies of these words scattered in a paragraph and show that your program does accept these words and gives an output to that effect.
in cpp i am having class person what is the meaning of "person &person::greater(person &x)"
Explain what are the data members and the member functions?
give me specifically only the significance of this pointer
What is the out put and why? class Class_name main() // Declarations num index num SIZE = 10 num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0 index = 0 while index < SIZE numbers[index]= index * 10 index = index + 1 endwhile output “The Output is: ” while index > 0 index = index – 1 o
Provide any four benefits of OOPS.
Describe the various forms of Tourism with examples. 25
18,76,764
1956141 Asked
3,689
Active Tutors
1441565
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!