Hi i need to Acess a variable "int Intval" in the below
mentioned code .How to Access it guys i am waiting for your
reply
Answer Posted / vic
Write a getter method?
int val::getVal() {
return intval;
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it possible to write a c++ template to check for a function's existence?
What is the difference between the parameter to a template and the parameter to a function?
Differences between private, protected and public and give examples.
Explain data encapsulation?
What are the benefits of pointers?
Is c++ a pure oop language?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What is polymorphism and its type in c++?
What are the classes in c++?
Write a recursive program to calculate factorial in c++.
What is istream c++?
Explain stack unwinding.
What flag means?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What are the differences between malloc() and calloc()?