Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 37

THE DOT OPERATOR

BY : HANAR AHMED
AHMED DANA
The Dot Operator

Every object reference


variable must refer to some
object, unless it is null, in
which case it points to
nothing. Using the remote
control analogy, a null 1
reference is a remote control
holder that is empty.
Initially, unless we assign an
object variable to point to
something, it is null.
One of the primary uses of an object reference variable is to
access the members of the class for this object, an instance of
its class. That is, an object reference variable is useful for
accessing the methods and instance variables associated with
an object. This access is performed with the dot (".") operator.
We call a method associated with an object by using the
reference variable name, following that by the dot operator
and then the method name and its parameters.
3
SIGNTURE
This calls the method with the specified name for the
object referred to by this object reference. It can optionally
be passed multiple parameters. If there are several methods
with this same name defined for this object, then the Java
runtime system uses the one that matches the number of
parameters and most closely matches their respective 4

types. A method's name combined with the number and


types of its parameters is called a method's signature, for it
takes all of these parts to determine the actual method to
perform for a certain method call.
Consider the following examples:

oven.cookDinner();
oven.cookDinner(food);
oven.cookDinner(food, seasoning);

5
INSTANCE VARIABLE

instance variables, which are also called fields.


These variables represent the data associated with
the objects of a class. Instance variables must have a
type, which can either be a base type (such as int,
float, double) or a reference type (as in our remote
control analogy), that is, a class, such as String an
interface.
Continuing our analogy of visualizing object
references as remote controls, instance variables are 6
like device parameters that can be read or set from
the remote control (such as the volume and channel
controls
If you on
want a television
to modify remote
these graphs, control).
click on them, follow the link,
change the data and replace them
2nd
ANNOUNCEM
ENT Saturn is the ringed one. It’s a
gas giant, composed of
hydrogen and helium

MERCURY NEPTUNE MARS


Mercury is the closest planet Neptune is the farthest planet Despite being red, Mars is a
to the Sun and also the from the Sun and the fourth- cold place, not hot. The planet
smallest one in our Solar largest in our Solar System is full of iron oxide, which
System. It’s only a bit larger gives the planet its reddish
than our Moon cast
01
ANNOUNCEMENTS
ANNOUNCEMENTS
Here you could describe the topic of the section 01
IN DEPTH
Here you could describe the topic of the section 02
IN BRIEF
Here you could describe the topic of the section 03
WELCOME!
Here you could describe the topic of the section
04 9

EVENTS
Here you could describe the topic of the section 05 SUMMARY
DIGITAL
COMPANY
NEWSLETTE
R
Here is where your presentation begins
02
IN DEPTH
03
IN BRIEF
NEWS MERCURY
Mercury is the closest
VENUS
Venus has a beautiful
planet to the Sun and name and is the second
also the smallest one in planet from the Sun. It’s
our Solar System terribly hot

NEPTUNE JUPITER
Neptune is the farthest Jupiter is the biggest
planet from the Sun and planet in our Solar
the fourth-largest in our System and the fourth-
Solar System brightest object in the
sky
CUSTOMER LAURA PATTERSON
REVIEWS “Neptune is the farthest planet from the Sun and the
fourth-largest in our Solar System!”

JENNA SMITH
“Mercury is the closest planet to the Sun and also the
smallest one in our Solar System”
14

JOHN JAMES
“Despite being red, Mars is a cold place, not hot. It’s full
of iron oxide dust, which gives the planet its reddish cast”
04
WELCOME!
WELCOME!

Venus has a beautiful name and is


the second planet from the Sun. It’s
terribly hot—even hotter than
Mercury—and its atmosphere is
extremely poisonous
16

JOHN DOE
05
EVENTS
THANK
S
Does anyone have any questions?

addyouremail@freepik.com 18
+91 620 421 838
yourcompany.com
UPCOMING
EVENTS

26 APRIL 13 JULY
Mercury is the closest Despite being red,
planet to the Sun Mars is a cold place

19

Venus has a beautiful Saturn is composed of


name, but it’s very hot hydrogen and helium

06 JUNE 30
AUGUST
CREDITS
This is where you give credit to the ones who are part of this project.
Did you like the resources on this template? Get them for free at our other websites.

◂ Presentation template by Slidesgo


◂ Icons by Flaticon
20
◂ Infographics by Freepik
◂ Images created by Freepik
◂ Author introduction slide photo created by Freepik
◂ Text & Image slide photo created by Freepik.com
PHOTOS
◂ Crop woman with tablet red cover
RESOURCES
◂ Woman sitting chair with smartphone
◂ Brunette business woman outdoors with red coat
◂ Beautiful woman looking digital tablet
◂ Attentive young man woman standing street
◂ Friends singing karaoke party
◂ Friends singing karaoke party
◂ Group friends party
◂ Burning bengal light blurred background
◂ Two young women working laptop wooden desk
◂ Portrait smiling young man holding takeaway coffee cup looking away 21
◂ Beautiful woman writing schedule diary while talking cellphone
◂ Cheerful colleagues discussing work plans during break

VECTOR
◂ Pack people faces
Instructions for use
In order to use this template, you must credit Slidesgo by keeping the Credits slide.

You are allowed to:


- Modify this template.
- Use it for both personal and commercial projects.

You are not allowed to:


- Sublicense, sell or rent any of Slidesgo Content (or a modified version of Slidesgo Content).
- Distribute Slidesgo Content unless it has been expressly authorized by Slidesgo.
- Include Slidesgo Content in an online or offline database or file.
- Offer Slidesgo templates (or modified versions of Slidesgo templates) for download.
- Acquire the copyright of Slidesgo Content.

For more information about editing slides, please read our FAQs:
https://slidesgo.com/faqs
Fonts & colors used
This presentation has been made using the following fonts:

Oswald
(https://fonts.google.com/specimen/Oswald)

Barlow Semi Condensed


(https://fonts.google.com/specimen/Barlow+Semi+Condensed)

#e04053 #f4f2f2 #434343


Use our editable graphic resources...
You can easily resize these resources keeping the quality. To change the color just ungroup the resource and
click on the object you want to change. Then click on the paint bucket and select the color you want. Don’t
forget to group the resource again when you’re done.
...and our set of editable icons
You can resize these icons keeping the quality.
You can change the stroke and fill color; just select the icon and click on the paint bucket/pen.
Business Icons
Avatar Icons
Creative Process Icons
Educational Process Icons
Help & Support Icons
Medical Icons
Nature Icons
Performing Arts Icons
SEO & Marketing Icons
Teamwork Icons

You might also like