Home / MCQ Bank / Computer
Computer Advanced Oop Concepts

What is the purpose of the @property decorator in advanced OOP?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • To define a getter method for a class attribute

Related Computer Questions

How many parameters are required for sort_heap function? In a k-d tree, k originally meant? What is the most essential purpose of parantheses in regular expressions ? What is meant by permutation in c++? What will be printed after executing following program code? class Base{ int value = 0; Base(){ addValue(); } void addValue(){ value += 10; } int getValue(){ return value; } } class Derived extends Base{ Derived(){ addValue(); } void addValue(){ value += 20; } } public class Test{ public static void main(String[] args){ Base b = new Derived(); System.out.println(b.getValue()); } }