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. 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
تجمع شيتات واسئلة oop
Lecture 5 , Inheritance - Teacher.pptx
شيتان فرج نجم كلهن
access modifier method located in interface class....( public )
مش. private package
مش. private package
access modifier (visibility modifiers)
availability modifiers specifies how data fields and methods in class can be accessed from outside the class
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%
❌
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.
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.
non access modifier
1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
1.static
2 .final
3.abstract
4.synchronized and volatile modifiers
الdefult access modifier للinterface
ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)
متقدرش ادير protected او private يطلع ايرور
ال(methods.....(public
ال attributes.....(public static final)
ال class......( package private)
متقدرش ادير protected او private يطلع ايرور
❤2
تجمع شيتات واسئلة oop
advantage of static valribles.
if makes your program memory efficient
if makes your program memory efficient
هذي advantage مش هدفها الاساسي