• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

What is object aaa?

i m new in programming ... what does this syntax mean
object aaa; ?

please explain in details
0
mkhalidmn
Asked:
mkhalidmn
1 Solution
 
boro_bobCommented:
That's not too much to go on, but I assume you mean you are declaring a new object with the name aaa. Object is the base class that all other object derive from for example strings, ints, web controls etc.

examples of declarations:

string strMyString;
int iMyInt;

strMyString = "This is a string";
iMyInt = 49;
0
 
JimBrandleyCommented:
Usually, we declare a variable of type object when we are invoking a method that returns an object, or null if it doesn't return anything. For example, the application cache. As in:

object value;
bool wasUsed = false;
value = Application["WasUsed"];
if (value != null)
   wasUsed = (bool)value;

Jim
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now