تجمع شيتات واسئلة oop
813 subscribers
345 photos
12 videos
166 files
37 links
شوفو التثبيتات واتركو لنا دعوة جزاكم الله خيرا. 🤍
Download Telegram
امتحانات OOP (1).pdf
2.4 MB
امتحانات 2017_2018_2019 محلولة
فيهن نظري مهم ديرو عليهن طلة
1
نلتقى غدا في interface و polymorphism upcasting Downcasting
5👍4
صباح الخير.

اللهم ارزقنا سرعة الفهم وقوة الحفظ
22👍2
class Shape {
Shape(int size) {
System.out.println("Shape constructor called with size = " + size);
}
}


class Circle extends Shape {
Circle(int radius) {

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


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


ايرور، كمبايلر مفش super
👍1
class A {
private int x = 0;

A() {
x++;
System.out.println(x);
}

A(int x, int y) {
System.out.println(x + y);
}
}

class B extends A {
private int x = 17;

B() {

System.out.println("(" + 2 + ", " + 2 + ")");
}

B(int x, int y) {
super(x, y);
}
}

public class programs5 {
public static void main(String[] args) {
B obj = new B();
}
}
نظري اسئلة امتحانات
انواع الabstract
تتبع ساريا
1
Encapsulation is also known as Data abstraction
Anonymous Quiz
68%
True
32%
False
في interface، لما بنعرفوا متغير، ضروري نعطوه قيمة و إلا حيعتبر compile time error، و السبب علشان أنه static.
2
Composition is a feature of java, not a design technique but we can achieve it using Java code.
Anonymous Quiz
49%
True
51%
False
👍1