TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3812
To review
16
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3812
To review
16
44 questions
Hard
11 votes752 runs0 comment
Medium
3 votes605 runs0 comment
Medium
2 votes678 runs2 comments
Easy
2 votes662 runs0 comment
Medium
2 votes386 runs0 comment
Medium
1 vote707 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
Hard
1 vote653 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
1 vote610 runs0 comment
Medium
1 vote196 runs0 comment
Medium
1 vote195 runs0 comment
How to keep common data for the whole class in OOP?
Samuelat Mar 28, 2022
Medium
1 vote187 runs0 comment
Easy
1 vote177 runs0 comment