TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3561
To review
2
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3561
To review
2
40 questions
Hard
8 votes529 runs0 comment
Medium
2 votes470 runs0 comment
Medium
1 vote501 runs2 comments
In this code, the class B extends the class A. The class B overrides the method talk() from the class A. The object b is an instance of the class B. The object a is an instance of the class A. The object a is assigned to the object b. The object a calls the method talk(). The method talk() from the class B is called.
Samuelat Mar 28, 2023
Expert
1 vote463 runs1 comment
What does the following code return ? public class A { public void talk() { echo "I am A" } public secretTalk() { this.talk() } } public class B extends A { private void talk() { echo "I am B" } public secretTalk() { this.talk() } } A b = new B() b.talk() b.secretTalk() Answer : "I am A" "I am B"
Samuelat Mar 28, 2022
Easy
0 vote469 runs0 comment
Expert
0 vote440 runs1 comment
Easy
0 vote436 runs0 comment
Medium
0 vote434 runs0 comment
Medium
0 vote293 runs0 comment
Hard
0 vote169 runs0 comment