Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Difference static and non static, public and private filter_list
Author
Message
Difference static and non static, public and private #1
i just need some1 to explain me the difference between public and private and the difference between static and non static methods !!

thanks in advance for you help Smile
[Image: blackeagle_zps6ad86521.gif]

Reply

RE: help pls #2
static vs non-static: http://www.hackcommunity.com/Thread-Tuto...non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: help pls #3
static vs non-static: http://www.hackcommunity.com/Thread-Tuto...non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: help pls #4
static vs non-static: http://www.hackcommunity.com/Thread-Tuto...non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Difference static and non static, public and private #5
Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tuto...-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/r...index.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.
[Image: OilyCostlyEwe.gif]

Reply

RE: Difference static and non static, public and private #6
Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tuto...-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/r...index.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.
[Image: OilyCostlyEwe.gif]

Reply

RE: Difference static and non static, public and private #7
Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tuto...-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/r...index.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.
[Image: OilyCostlyEwe.gif]

Reply

RE: Difference static and non static, public and private #8
@Deque thank you very much i'm gonna read ur tut soon Smile
@"Psycho_Coder" well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile
[Image: blackeagle_zps6ad86521.gif]

Reply

RE: Difference static and non static, public and private #9
@Deque thank you very much i'm gonna read ur tut soon Smile
@"Psycho_Coder" well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile
[Image: blackeagle_zps6ad86521.gif]

Reply

RE: Difference static and non static, public and private #10
@Deque thank you very much i'm gonna read ur tut soon Smile
@"Psycho_Coder" well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile
[Image: blackeagle_zps6ad86521.gif]

Reply







Users browsing this thread: 1 Guest(s)