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

Want your school to be the top-listed School/college in Mandalay?

Click here to claim your Sponsored Listing.

Location

Category

Website

Address


Mandalay