answersLogoWhite

0

The dot operator is used to access properties and methods of an object. Types do not have properties or methods, so the dot operator cannot be used on them.

User Avatar

AnswerBot

8mo ago

What else can I help you with?

Related Questions

When to use the dot operator and when to use the arrow operator in c plus plus?

You use the dot operator when the left side is the name of the object or a reference to an object, and you use the arrow operator when the left side is a pointer to an object. Example: struct foobar x, *p= &x; x.field = p->field; (&x)->field = (*p).field;


What is the operator that cannot be overloaded?

There are 5 operators which cannot be overloaded. They are: * .* - class member access operator * :: - scope resolution operator * . - dot operator * ?:: - conditional operator * Sizeof() - operator Note:- This is possible only in C++.


Can you use Honda DOT 4 brake fluid in place of DOT 3 brake fluid for your Honda accord 2010?

Yes, you can use either DOT 3 or DOT 4 and they can be mixed. You cannot use DOT 5.


What is the Boolean operator that is appropriate to use?

Boolean is a type, not an operator and can have the value of either TRUE or FALSE


What brake fluid type to use on 1994 dodge intrepid?

DOT 3 or DOT 4


What type of brake fluid does a 1994 caprice use?

Dot 3Dot 3


How do you invoke method by using object of the class?

If you have and object with method described within its class you can use dot access operator, for instance:myObject.DoSomething();


What is use of dot in php?

The dot (.) operator in PHP is used to concatenate strings. For instance:$start = "Big";$end = "Bird";echo $start . ' ' . $end;This code would produce the output:Big Bird


What brake fluid type do you use for a 1997 Jeep Grand Cherokee?

Dot 3 or Dot 4


What is the use of 'size of' in c programming?

The sizeof operator is used to determine the length of its operand (in bytes). The operand must be a type or an object of a type (a variable). The operator is a constant expression and therefore executes at compile time. As such there is no runtime overhead in repeated use of the sizeof operator.


What is use of dot operator in java?

"the dot" connects classes and objects to members. The places where you use it in what I cover are:(1) when you are connecting an object reference variable to a method. The Extending Existing Classes lesson introduces the dot operator for this use, and(2) when you are connecting a class name to one of its static fields. An example of this is the dot between "System" and "out" in the statements we use to print stuff to the console window. System is the name of a class included in every Java implementation. It has an object reference variable that points to a PrintStream object for the console. So, "System.out.println( "text") invokes the println() method of the System.out object.


What type of brake fluid does a Hyster N40XMR3 forklift use?

The Hyster N40XMR3 forklift typically uses DOT 3 or DOT 4 brake fluid, which is a glycol-based fluid. It's important to check the operator's manual or manufacturer's specifications for the correct type and any specific recommendations. Regular maintenance and appropriate fluid levels are crucial for optimal braking performance.