OOP Questions Zone
4 posters
Bioinformatics FCIS AinShams :: Lectures & Sections :: Archive :: Second Year 2009/2010 2nd term :: OOP
Page 1 of 1
OOP Questions Zone
here
You Can Ask Any one
and
Any one will answer YOU
You Can Ask Any one
and
Any one will answer YOU
BOMBO- Posts : 36
Reputation : 4
Join date : 2010-03-08
Age : 33
Location : Cairo -shoubra
Re: OOP Questions Zone
emta asta5dem interface we emta asta5dem abstract class we abstract functions
baher- Posts : 8
Reputation : 0
Join date : 2010-05-15
Re: OOP Questions Zone
el abstract class dah byb2a 3ebara 3n akbr class 3ndk fe el program el enta mesh bet7tag te3ml men object(bas momken te3ml meno reference)
el interface dah no3 5as men el classes mabykonshy feih ay fields 5als 3`ier constant static fields we dah enta bet7tago lama ykoon 3ndk classes kteera kol wa7ed fehom leih el abstract beta3o bas kol el classes deih betgm3ha fn mo3yna fa enta te3ml interface sa3etha we te3ml kol el classes deih implement el interface beta3k
el interface dah no3 5as men el classes mabykonshy feih ay fields 5als 3`ier constant static fields we dah enta bet7tago lama ykoon 3ndk classes kteera kol wa7ed fehom leih el abstract beta3o bas kol el classes deih betgm3ha fn mo3yna fa enta te3ml interface sa3etha we te3ml kol el classes deih implement el interface beta3k
Re: OOP Questions Zone
fe 7aga kaman 3wza 2azwedha 3la shoko, en ana momken yb2a el abstract zy el interface f 7ala w7da, en el abstract class beta3ak kolo abstract functions((y3ny functions with no implementations)), fa s3tha 7yb2a hwa hwa zayo zy el interface fl taree2a
@ shoko b2a, w brdo ya shokrof fl interfaces 3ady lama ne3ml functions btkoon static public functions lwa7daha bs tb3n mn 3;er implementaions, 3shan momken 7abet classes mlhomshy 3elaka b b3d yest5demo common function, zy el invoice wl payable ely fl ktab lama est5demo el payment function.
@ shoko b2a, w brdo ya shokrof fl interfaces 3ady lama ne3ml functions btkoon static public functions lwa7daha bs tb3n mn 3;er implementaions, 3shan momken 7abet classes mlhomshy 3elaka b b3d yest5demo common function, zy el invoice wl payable ely fl ktab lama est5demo el payment function.
LOveunitED- Admin
- Posts : 100
Reputation : 6
Join date : 2010-03-07
Age : 33
Location : Heliopolis
Re: OOP Questions Zone
awln ana mesh shoko
eli bymyz 2enk te3mli interface 3an 2enk te3mli abstract class 2en ay class fe el java maynf3eshy yextend 3`ier men class wa7ed fa lw enty 3ndk two hierarchies we feih fn 3ayzahom homa el etneen yimplementoha te3mli el interface we sa3etha mesh hynfe3 te3mli abstract class 3lshan homa already extend classat tanya ya rab tekooni fehmty asdy
eli bymyz 2enk te3mli interface 3an 2enk te3mli abstract class 2en ay class fe el java maynf3eshy yextend 3`ier men class wa7ed fa lw enty 3ndk two hierarchies we feih fn 3ayzahom homa el etneen yimplementoha te3mli el interface we sa3etha mesh hynfe3 te3mli abstract class 3lshan homa already extend classat tanya ya rab tekooni fehmty asdy
Re: OOP Questions Zone
aha, y3ny hwa lzmeto eny lw 3yza more dan class ye inhertooh???, mmmmm w 3shan el java msh btwafe2 en class ywres mn aktar mn class, fl interface hwa ely 7alely el prob dih??
momken brdo::
Thank You ya Mostafa Sho2rof, el shaheer b shoko , lw kan dh asdak
momken brdo::
Thank You ya Mostafa Sho2rof, el shaheer b shoko , lw kan dh asdak
LOveunitED- Admin
- Posts : 100
Reputation : 6
Join date : 2010-03-07
Age : 33
Location : Heliopolis
Re: OOP Questions Zone
ana 2edtko sal7ya 2enko te2ololi ya shoko fe 7alla wa7da leih bet2oliha ba2a 3mal 3la batal
Exception Handling
what is the 'throws' clause and when do we use it ?
baher- Posts : 8
Reputation : 0
Join date : 2010-05-15
Re: OOP Questions Zone
throw clause
dah 3bara 3n enk bt3ml throws ll exception ele enta mtwk3 eno ye7sl ll program bta3k
byb2a 2bl body el function ele enta 3ayez te callha
w kol lma 3mlt throws ll exception btfsl ben kol exception wel tane be ,
so
fydto eh tyb ?
enk el compiler lma yege yela2e el exception byb2a checked exception otherwise it would be unchecked exception.
yarb tkon weslt
dah 3bara 3n enk bt3ml throws ll exception ele enta mtwk3 eno ye7sl ll program bta3k
byb2a 2bl body el function ele enta 3ayez te callha
w kol lma 3mlt throws ll exception btfsl ben kol exception wel tane be ,
so
fydto eh tyb ?
enk el compiler lma yege yela2e el exception byb2a checked exception otherwise it would be unchecked exception.
yarb tkon weslt
BOMBO- Posts : 36
Reputation : 4
Join date : 2010-03-08
Age : 33
Location : Cairo -shoubra
Similar topics
» Logic Questions Zone
» Business Questions Zone
» File Organization Questions Zone
» Molecular Genetics Questions Zone
» Math Qustions Zone
» Business Questions Zone
» File Organization Questions Zone
» Molecular Genetics Questions Zone
» Math Qustions Zone
Bioinformatics FCIS AinShams :: Lectures & Sections :: Archive :: Second Year 2009/2010 2nd term :: OOP
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum