logo

Crowdly

Browser

Add to Chrome

Об'єктно-орієнтоване програмування

Looking for Об'єктно-орієнтоване програмування test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування at virt.ldubgd.edu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Область

дії вкладених класів обмежується областю дії:

0%
0%
0%
0%
View this question

Модифікатор

за замовчуванням надає доступ до членів класу:

View this question

З яким

модифікатором доступу оголошено змінну three

class One {

             private int one;

             public int two;

             int three;

}

0%
0%
0%
0%
View this question

Механізм,

що зв’язує код та дані, якими він маніпулює, захищаючи

їх від зовнішнього втручання – це?

View this question

Помилка компіляції

програмного коду

class One {

             int one;

             static int two = 2;

             int three;

            

             public One(int one, int three) {

                    this.one = one;

                    this.three = three;

             }

 

             static void method() {

                    int result = one + three;

             }

}

View this question

Результат компіляції

програмного

class One {

             int one;

             static int two = 2;

             int three;

}

 

public class OneMain {

       public static void main(String[] args) {

             One one = new One();

             one.one = 2;

             one.three = 8;

            

             System.out.println(one.three/(One.two*one.one));

       }

}

View this question

Принципи інкапсуляції реалізуються

за допомогою:

0%
0%
0%
0%
View this question

Вкажіть

помилку компіляції коду

class One {

             private int one;

             public int two;

             int three;

}

public class OneMain {

       public static void main(String[] args) {

             One one = new One();

             one.one = 2;

             one.two = 4;

             one.three = 8;

       }

}

View this question

Вкажіть

правильну форму оголошення статичного блоку ініціалізації

0%
0%
0%
0%
View this question

Помилка компіляції програмного

коду:

class One {

             int one;

             static int two = 2;

             int three;

            

             public One(int one, int three) {

                    this.one = one;

                    this.three = three;

             }

 

             int suma () {

                    int result = one + three

+

two;

                    return

result;

             }

            

             static void method() {

                    int result = suma()/two;

             }

}

View this question

Want instant access to all verified answers on virt.ldubgd.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome