logo

Crowdly

Browser

Add to Chrome

Mobilprogramozás I. (Kotlin alapokon)

Looking for Mobilprogramozás I. (Kotlin alapokon) test answers and solutions? Browse our comprehensive collection of verified answers for Mobilprogramozás I. (Kotlin alapokon) at moodle.uni-eszterhazy.hu.

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

A következő Employee osztályt alapul véve, lehetséges a salary változót felöldefiniálni?

abstract class Employee(val name: String) {

abstract var salary: Int

abstract fun dateOfBirth(date:String) 

var company = "HelloWorld co."

fun employeeDetails() { 

println("Name : $name") 

println("Company: $company")

}

class Developer(name: String) : Employee(name) { 

override var salary = 1_000_000

override fun dateOfBirth(date:String){

println("Salary: $salary")

println("Birthday: $date") 

}

}

(Igaz => Yes, Hamis => No)

100%
0%
View this question

Milyen típusú lesz a következő változó?

val data = 0

0%
0%
0%
0%
0%
View this question

Mit csinálunk a következő osztály definícióban?

class Book () {

var author: String = ""

get() {

return field

}

set(value) {

field = value 

    }

}

Please select one correct answare!

100%
0%
0%
View this question

Mi a megfelelő kulcsszó, hogy Kotlinban egy függvényt definiáljunk?

0%
0%
0%
View this question

Mi fog kiíródni a for ciklus végén?

for( i:Int in 1..3 ){

print( i ); print(" ")

}

0%
0%
0%
0%
View this question

Mi lesz a c változó tartalma a println(c) kiíratás során?

var c: Int =0

val a: Int =1

val b: Int =2

if(a > b)

c = a

else

c = b

println(c)

0%
0%
0%
100%
View this question

Tudunk végrehajtható kódot megadni közvetlenül egy elsődleges konstruktor definíciójában?

0%
100%
View this question

Mi lesz kiírva?

val dayIndex : Int = 5

when (dayIndex) {

6 -> print("Saturday")

7 -> print("Sunday")

else -> {

print("Workday")

}

}

0%
0%
0%
0%
View this question
Mit ír le a következő?

class Human(var name: String, var age: Int)

0%
100%
0%
View this question

A következő öröklés működni fog!

class Animal { 

open fun voice() {

println("Animal creates voice")

}

}

class Dog : Animal() { 

override fun voice() {

println("Woof") }

}

0%
0%
View this question

Want instant access to all verified answers on moodle.uni-eszterhazy.hu?

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

Browser

Add to Chrome