تجمع شيتات واسئلة oop
812 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
constractor are mainly used for eliminate default values by user defined values
Anonymous Quiz
78%
22%
the thid object reference can be used inside any non static and static methods to refer to the current object
Anonymous Quiz
45%
55%
this keywords it can be used to invoke current class method
Anonymous Quiz
79%
21%
the main purpose of using this keyword is to differente the formal parameters and data members of class
4
Modifier types

1. java access modifiers
2.non access modifiers

to use a modifiers you include its keywords in the definition of a class method or variable
1
All variables in OOP defult access modifier private package
Anonymous Quiz
41%
59%
access modifier method located in interface class....( public )

مش. private package
access modifier (visibility modifiers)

availability modifiers specifies how data fields and methods in class can be accessed from outside the class
access modifier is the most resticitive access level
Anonymous Quiz
32%
public
47%
private
8%
protected
13%
package private
the protected access modifier can be applied to class and interface method
Anonymous Quiz
36%
64%
set&&get

called avcesor methods
parameters:

are local varibles which declared in the parameters list of a methods header and which have initial values specified by the arguments in a method call.
the scope of local varibles is referred to ad local scope
non access modifier

1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
وال interface مش non access modifier
الdefult access modifier للinterface

ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)


متقدرش ادير protected او private يطلع ايرور
الاصدار التاسع. يمكن تنفيد الدوال داخل الmethods باستخدام keywords defult او private