Start learning 50% faster. Sign in now
Inheritance is a key feature of Object-Oriented Programming (OOP) that allows a class (called the derived or child class) to inherit properties and methods from another class (called the base or parent class). This helps in reusing code and establishing hierarchical relationships between classes. The derived class can access and modify the behaviors of the base class, and it can also add its own additional methods and properties.
A bag contains 3 black and 9 white balls. One ball is drawn at random. What is the probability that the ball drawn is white?
In a bag, there are three different colour balls namely red, yellow and white. The sum of the number of yellow and red balls in the bag is equal to the ...
A box contains only three colors of balls- red, green and blue. What is the minimum number of balls that should be picked from the box to ensure that at...
The names of 8 students from section A, 9 students from section B and 10 students from section C were selected. The age of all the 27 students was diffe...
A is trying to break a bulb by throwing balls at it. If he hits the bulb 3 times in every 5 throws and bulb breaks 3 times out of 12 hits, then find the...
 A bag contains 4 white balls, 5pink balls and 3 black balls. 2 balls are drawn randomly. What is the probability that there are no black balls?
A bag contains 20 white and some black balls. If the probability of drawing a black ball from the bag is 2.5 times that of drawing a white ball, find th...
What is the Probability of getting a sum of ‘9’ on rolling a dice twice?
A bag contains 6 Green and 8 Red balls. One ball is drawn at random. What is the probability that the ball drawn is Red?