smemamian
پنج شنبه 16 آبان 1392, 11:09 صبح
سلام دوستان
در مورد این کلاس مطالب زیادی خوندم و مثال های مختلفی بوده !
مثلاً اومده بودن یک کلاس نوشته بودن و extends کرده بودن از کلاس application !
این کلاس یک سری متغییر داشت ! و در کلاس دیگری یک شی از این کلاس extends شده از application رو فراخوانی می کرد و متغییر رو کاهش و یا افزایش می داد !
خب سوال اینه که با یک کلاس معمولی هم می شود چنین کاری کرد ! و نیازی به extends کردن از application نیست !!!
کسی می تونه یک مثال (منظورم کد نیست ! منظورم توضیحی است) بزنه ؟!
تشکر
در مورد این کلاس مطالب زیادی خوندم و مثال های مختلفی بوده !
مثلاً اومده بودن یک کلاس نوشته بودن و extends کرده بودن از کلاس application !
این کلاس یک سری متغییر داشت ! و در کلاس دیگری یک شی از این کلاس extends شده از application رو فراخوانی می کرد و متغییر رو کاهش و یا افزایش می داد !
خب سوال اینه که با یک کلاس معمولی هم می شود چنین کاری کرد ! و نیازی به extends کردن از application نیست !!!
کسی می تونه یک مثال (منظورم کد نیست ! منظورم توضیحی است) بزنه ؟!
تشکر