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%
❌
to resolve name conflicts
Anonymous Quiz
8%
abstract keywords
7%
interface keywords
69%
this keywords
9%
final keywords
7%
static keywords
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 يطلع ايرور