Which object-oriented programming concept allows one class to acquire the properties of another class?
آبجیکٹ اورینٹڈ پروگرامنگ میں کون سا تصور ایک کلاس کو دوسری کلاس کی خصوصیات حاصل کرنے دیتا ہے؟
- Encapsulation
- Inheritance
- Abstraction
- None of these
Explanation
- Inheritance allows a class to use properties and methods of another class.
- The existing class is called the parent or base class.
- The new class is called the child or derived class.
Last verified on 14-11-2026
Related MCQs
سمورغ نامی سپر کمپیوٹر کس ملک نے تیار کیا ہے؟
- China
- Japan
- Iran
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
سی پی یو کے اندر کون سی میموری نصب ہوتی ہے؟
- RAM
- ROM
- Register
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
ورلڈ وائیڈ ویب کو رابرٹ کیلِیو کے ساتھ کس نے ایجاد کیا؟
- Tom Burne
- Tim Burner Lee
- Fred Zuckerberg
- Both a and b
اس سوال کو وضاحت کے ساتھ پڑھیں
مصنوعی ذہانت کا بانی کسے کہا جاتا ہے؟
- Mark Zuckerberg
- Alan Turing
- John McCarthy
- Bill Gates
اس سوال کو وضاحت کے ساتھ پڑھیں
کمپیوٹر گرافکس کا بانی کسے کہا جاتا ہے؟
- Charles Babbage
- Alan Turing
- Ivan Sutherland
- None of these