Minter Coder's Blog

Ders Notlarım

image

Ders 40 - Polymorphism

2021-04-24
Polymorphismin amacı bir nesnenin farklı formlarda olması yeteneğidir.Tabi ki bu cümlede bir şey anlamadınız.Örnek ile kısaca açıklayalım. public class Animal{ public boolean isAlive(){ return true; } } interface CanRun{ ...
Read more →
image

Ders 39 - Interfaces

2021-04-24
Bir interface bir abstract veri türüdür ve bu interface abstract public methodların bir listesini tanımlar , ki , bunu implement eden sınıf bu methodları override etmek zorundadır.Bir sınıf "implements" keywordü ile bir interfaceyi implement eder....
Read more →
image

Ders 38 - Abstract Sınıflar

2021-04-24
Arkadaşlar merhabalar , bugün artık yeni konu olan abstract classlara girecez. Abstract class abstract keywordü ile işaretlemiş ve instantiated olamayacak sınıflardır.Yani siz bu sınıfın nesnesini oluşturamazsınız,başlatamazsınız.Abstract metho...
Read more →
image

Ders 37 - Kalıtım/Inheritance 4

2021-04-24
1)Overriding a method Bir methodu ezme.Bu olay nasıl oluyor ? Öncelikle bu olayın olabilmesi için parent classımızın içerisinde bir method olması gerek ve eğer ki biz bu methodu child classımızda da kullanırsak bu methodu ezmiş oluruz.Hemen şöy...
Read more →
image

Ders 36 - Kalıtım/Inheritance 3

2021-04-08
Inheritanceye devam ediyoruz. 4-Inheritancede Class üyelerine erişme(method ve variables) : Javada child classlar parent classın public yada protected erişim belirteçlerine sahip olan methodlar , primitive türlere erişebilir.Tek bir örnekle ...
Read more →
image

Ders 35 - Kalıtım/Inheritance 2

2021-04-08
Arkadaşlar merhabalar Inheritance konusuna devam ediyoruz. 2-Inheritance ile Constructor Tanımlama: Inheritance de arkadaşlar eğer ki super classımız parametre değerine sahip bir constructora sahip ise subclassların hepsi super() komutunu kulla...
Read more →
image

Ders 33 - Constructor(Yapıcılar)

2021-04-06
Arkadaşlar merhabalar bu konuda Constructorlara değineceğiz.Constructor kısaca nedir ? Öncelikle constructor da bir methoddur fakat bu özel bir methoddur ve bu methodun ismi class ismi ile eşleşmelidir.Constructorlar bir yeni nesne creating edi...
Read more →
image

Chapter 2 - Soru 50

2021-03-18
50. What is the output of the following? package beach; public class Sand {     public Sand() {      System.out.print("a");     }    public void Sand() {     ...
Read more →
image

Chapter 2 - Soru 49

2021-03-18
49. Which converts a primitive to a wrapper class object without using autoboxing? A. Call the asObject() method B. Call the constructor of the wrapper class C. Call the convertToObject() method D. Call the toObject() method Şıklardan hangi...
Read more →
image

Chapter 2 - Soru 48

2021-03-18
48. Which of the following is not a possible output of this code, assuming it runs to completion? package store; public class Toy { public void play() {     System.out.print("play-"); } public void finalize() {   &...
Read more →
image

Chapter 2 - Soru 47

2021-03-18
47. Which is a valid constructor for this class? public class TennisBall { } A. public TennisBall static create() { return new TennisBall(); } B. public TennisBall static newInstance() { return new TennisBall():} C. public TennisBall() {} D....
Read more →
image

Chapter 2 - Soru 46

2021-03-18
46. How many objects are eligible for garbage collection right before the end of the main method? 1:public class Person { 2:public Person youngestChild; 3:public static void main(String... args) { 4: 5:Person elena = new Person(); 6:Per...
Read more →
image

Chapter 2 - Soru 45

2021-03-18
45. Fill in the blanks to indicate whether a primitive or wrapper class can be assigned without the compiler using the autoboxing feature. _______first = Integer.parseInt("5"); _______second = Integer.valueOf("5"); A. int , int B. int , Integ...
Read more →
image

Chapter 2 - Soru 44

2021-03-18
44. Which is the most common way to fill in the blank to implement this method? public class Penguin {    private double beakLength;    public static void setBeakLength(Penguin p, int b) {      &nbs...
Read more →
image

Chapter 2 - Soru 43

2021-03-18
43. Which of the following is the output of this code, assuming it runs to completion? package store; public class Toy { public void play() {            System.out.print("play-"); } public vo...
Read more →