تجمع شيتات واسئلة oop
812 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
Forwarded from آلَآيــتــيـــوُنــــ💻 (Admin)
Object-Oriented Approach_IT.2022 (1) (1).pdf
3 MB
الجماعة اللي ياخدو من منهج ال oop ال pdf بتاع سارية
راهو في نسخة قديمة(اسمها OOP منهج كامل) ناقصة صفحات عن ال has a ومنعرفش لو في نقص اخرى
ف هدي النسخة الجديدة
Forwarded from خالد الرفادي
@AcademAidBot
.بوت يساعد في حل الاكواد يعطيك الoutput
2
Forwarded from خالد الرفادي
جمعة طيبة للجميع
الرجاء ابلاغ جميع الطلبة بان
Array list and array of object
غير داخلة للامتحان
5
class Shape {
protected int x;

String
public Shape(String x) {
this.x = Integer.parseInt(x);
System.out.println("Shape constructor called with x = " + this.x);
}


public Shape() {
this.x = 0;
System.out.println("Default Shape constructor called with x = " + this.x);
}
}

class Circle extends Shape {
private int radius;


public Circle(int radius) {
this.radius = radius;
this.x = 0;
System.out.println("Circle constructor called with radius = " + this.radius);
}

public void show() {
System.out.println("Radius: " + radius);
System.out.println("Shape's x: " + this.x);
}
}

public class Program4 {
public static void main(String[] args) {
Circle c1 = new Circle(10);
c1.show();

}}
:

class Shape {
protected int x;

public Shape(int x, int y) {
this.x = x;
System.out.println("Shape constructor called with x = " + this.x);
}
}

class Circle extends Shape {
private int radius;

public Circle(int x, int radius) {

this.radius = radius;
System.out.println("Circle constructor called with radius = " + this.radius);
}
}


public class Main {
public static void main(String[] args) {
Circle circle = new Circle(10, 5);
}
}


شن الرن هنا
:

interface InterfaceA {
default void display() {
System.out.print("#");
}
}

interface InterfaceB {
void display(); // دالة مجردة
}

class ImplementationClass implements InterfaceA, InterfaceB {
@Override
public void display() {
System.out.println("Display method in ImplementationClass");
}
}

public class Main {
public static void main(String[] args) {
ImplementationClass obj = new ImplementationClass();

obj.display();
}
}
type of inheriance

1.single inheriance
2.multilevel inheriance
3.Hierarchical inheriance
4.hybrid inheriance

الخامسة متدعمش فيها الجافا
5. multiple inheriance
the transitive natire of inheriance is reflected by this from of inheriance
Anonymous Quiz
23%
single
27%
multiple
34%
multilevel
16%
Hierarchical
1
superclass is typically a more specialized version of its subclass
Anonymous Quiz
48%
53%
💔1
why multiple inheriance is not supported in java???

to remove ambiguity
to provide more maintainable and clear design
methods interface
مصطلح constractor chaining
a most common example af has relationship in java
Anonymous Quiz
84%
a person has a adders
16%
an address has a person
👍2
Forwarded from Deleted Account
Naming a unchecked exception by checked because it checks at
Anonymous Poll
13%
Any time
38%
Run time
41%
Compiler time
8%
Static time
has a relationship denotes a whole part relatiosnship where a part cannot exist whithout the whole
Anonymous Quiz
72%
28%