Тэги:
#softwaretestingbymkt #mkt #manish_kumar_tiwari #software_testing_by_mkt #Best_YouTube_channel_for_software_testing #software_testing #software_testing_tutorialКомментарии:
No
Ответитьno
ОтветитьNo
ОтветитьYes... We can inherit the properties of sub class in to super class by up casting in this up casting child class will hide. Then we have to do the downcasting in the expliste way... Then we can access the sub class properties to the super class. With out doing up casting we are not able to do the downcasting.
ОтветитьNo, only a child can inherit not a parent inheriting from a child.
ОтветитьYes
ОтветитьNo, it is not possible.
ОтветитьYes, super class can inherit the properties of sub class
ОтветитьYes, super class inherit the properties for ad ub class
ОтветитьYes by upcasting concept
ОтветитьYes by getter and setter method
ОтветитьImposible, in POO the super class is just static and the child class can take the super class prop to modify and change it.
ОтветитьYes,we can call
ОтветитьNo it is not possible superclass inherit the property of subclass but we can do it forcefully by downcasting.
ОтветитьCourse details plz
ОтветитьBy using of extends we can get properties from super class to sub class.
ОтветитьNo
ОтветитьDowncasting explicitly
ОтветитьYes we can, by using Up-Casting
ОтветитьSuper class can't inherit the properties of child class. But we can create an object of a child class with the reference of the parent class....
ОтветитьWe can do it with help of “super” keyword to share properties of child or parent or either between them.
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьNo, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass
ОтветитьYes, explicitly
class Animal{
void eat(){
System.out.println("This animal can eat");
} }
class Bird extends Animal{
void fly(){
System.out.println("This animal can fly");
} }
class Program{
public static void main(String args[]){
Animal a=new Bird();
((Bird)a).fly();
} }
By upcasting
ОтветитьNo, the Vice versa is possible because whenever any class inherits the property of any class then it's always termed as child class not super class.
Ответитьby using this keyword??
ОтветитьS
ОтветитьNo
ОтветитьNo
ОтветитьNo it's not possible
ОтветитьIn object-oriented programming, it is not possible for a superclass to inherit the properties of a subclass. inheritance is a one-way relationship, with subclasses inheriting from superclasses, not the other way around.
ОтветитьDowncasting
ОтветитьYes when we write
Webdriver driver=new chromedriver()
No
ОтветитьNo, in object-oriented programming, inheritance works in the opposite direction. A subclass (child class) can inherit properties and methods from a superclass (parent class), but a superclass cannot inherit properties defined in its subclasses. Inheritance allows subclasses to extend or specialize the behavior of the superclass.
ОтветитьYes it is possible with upcasting we can convert child class objects to look like parent class object and access the properties of child class with help of parent class objects.
Ответить