473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What is diffrent betwenn :: and ->

// create the graph
$Graph =& Image_Graph::factory('graph', array(400, 300));
// add a TrueType font
$Font =& $Graph->addNew('ttf_font', 'Gothic');
I slice some of the code... so I do not really understand what is :: is
mean and function adn ->

is it its the same object refrence..

Jul 17 '05 #1
1 1373
Hello!
$Graph =& Image_Graph::factory('graph', array(400, 300));
$Font =& $Graph->addNew('ttf_font', 'Gothic');

I slice some of the code... so I do not really understand what is :: is
mean and function adn ->


ClassName::staticMethod()
calls the *static* method "staticMethod" in ClassName.
:: is the operator the access static methods.
Static methods can be called without having an object of the concerning
class. Therefore static methods (actually a function a class) may not
use "$this".

$object->method() calls the method "method" of the object referenced by
"$object". Non-static methods work with the state of the object they
belong to.

If you still do not know the difference between static and non-static
methods you should consult some OOP-explaining websites or books.

HTH
Hero Wanders
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: jaire | last post by:
In my application I have two threads. Each of them creates a new propertygrid. In the property grid I have a property with a color editor. Whenever i am clicking on the combo box to change the...
2
by: yatharth | last post by:
I am facing a problem ,the situation is like this. I have a home page named "Index.html" ,on which there is login link,when i click on the login link the login popup opens and user enter the...
1
by: chiranjiv choudhary via .NET 247 | last post by:
Can we have CodeBehind file in another server or same machine but diffrent location or directory -------------------------------- From: chiranjiv choudhary ----------------------- Posted by a...
0
by: Rudy | last post by:
Hello All! Been struggling with this for a few days. Taken many diffrent approches, but now I'm at the point I just need it to work. Everything I tried doesn't work, I'm sure it has something to...
2
by: Metalzed | last post by:
I have 4 tabels tbOWNERS // PLAYERS ID , NAME 1 Mike 2 Rambo 3 Sam tbCARS // CARS THAT EXIST AND WHO OWNS THEM
3
by: anders | last post by:
Hi! On my work we have a lot off diffrent server to make software for diffrent os from Windows, OS/X to Linux Solaris Everyting is scripted with shell, but Windows has batchfiles witch is...
5
by: Jassim Rahma | last post by:
i have a medical software which contains: 1. Appointments 2. Doctor Station 3. Laboratory 4. Pharmacy I want to be able to sell the software (all-in-one) or as saperate modules? how...
1
by: lawardy | last post by:
Hi, I'm quite new with Reporting server 2005. I'm wondering if there is a way to write a select query that will get the data from 2 diffrent tables located in 2 diffrent database box. for...
0
by: jesper_lofgren | last post by:
Hi, I have a custom build provider that gets data from a webservice. I have the XMLFeedUrl as a config parameter on the provider, my question is... If i need to get xmlfeeds from two...
1
by: krikaran adel | last post by:
Hi, First of all I found your tips very usfull, of course these tips becuas of all years working in access. really greet site. my Quation: is this away to change fonts in reports so the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.