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
Answers were Sorted based on User's Feedback
Answer / vic
Write a getter method?
int val::getVal() {
return intval;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saikat ganguly
class val
{
int intval
public :
void func ()
{
print("\n Enter the value of intval);
scanf("%d",&intval);
}
};
void main()
{
val p
p.func();
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ved prakash
using System;
class ved
{
public static void Main()
{
int x,y,z;
x=3;
y=6;
z=0;
z=x+y;
Console.WriteLine(z);
Console.ReadLine();
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Adobe Interview & Adobe Placement Paper
What is abstraction with real time example?
Why is it called c++?
Can we distribute function templates and class templates in object libraries?
Describe functional overloading?
What is the best it certification?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What are c++ tokens?
What is enum c++?
How const int *ourpointer differs from int const *ourpointer?
What is the difference between the functions rand(), random(), srand() and randomize()?
What is a multiset c++?