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 |
How would perform Pattern Matching in C++?
Can I make ios apps with c++?
What is a map in c++?
describe private access specifiers?
What you mean by early binding and late binding? How it is related to dynamic binding?
What does asterisk mean in c++?
What are shallow and deep copies?
What is a tree in c++?
What is the main purpose of c++?
what is object?
Name the implicit member functions of a class.
What is the output of the following program? Why?