SWE Interview Notes

SWE Interview Notes

Share

a CS student's SE notes dump

03/06/2024

Object Oriented Programming

1. Encapsulation ထုပ်ပိုးမှု
- Abstract data types တွေသုံးပြီးတော့ data နဲ့ ၄င်းပေါ်အခြေခံထားတဲ့ operations တွေကို encapsulate (ထုပ်ပိုးမှု) လုပ်ပြီး ခွဲခြားမရတဲ့၊ ဘယ်သူ့အပေါ်မှမမှီခိုတဲ့ entity တွေဖြစ်စေတယ်။
- ဒေတာနဲ့ လုပ်ဆောင်ချက်အသေးစိတ်တွေကို abstract data types ထဲမှာဝှက်ထားပြီး ပြင်ပပတ်ဝန်းကျင်နဲ့ အချိတ်အဆက်လုပ်လိုလျှင် interfaces တွေနဲ့ပဲ ဆက်သွယ်နိုင်ပါတယ်။

အကျိုး
- coupling တွေကို လျော့ချစေနိုင်တယ်
- maintenace လွယ်လွယ်ကူကူ ထိန်းသိမ်းနိုင်မယ်
- performace ကောင်ကောင်း tune နိုင်မယ်
- software components တွေ reusable နိုင်မယ်
- large systems တွေမှာ risks လျော့ချပေးနိုင်တယ်

public class Person {

private String name;
private int gender;
private int age;

public String getName() {
return name;
}

public String getGender() {
return gender == 0 ? "man" : "woman";
}

public void work() {
if (18

Category

Website

Address


Mandalay

Alerts

Be the first to know and let us send you an email when SWE Interview Notes posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Subscribe

We will notify you when anything happens in Mandalay.