MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.


edited October 2009 in C++
C++ ကို cplusplus website ရဲ့ tutorial ထဲကနေ selfstudy လုပ်နေတာ... consturctor , destructor , dynamic memory တွေကို သဘော မပေါက်လို့ ပါ.... ကျေးဇူး ပြုပီး...

object oriented ဆိုတဲ့ အဓိပ္ပာယ်ကိုလည်း သေချာ မသိဘူးဗျ...


  • edited April 2011 Registered Users
    Hi bro! The reason why you didn't understand constructor, destructor and etc is that you still need to make sure you understand about object-oriented programming (OOP). I am going to discuss here about nuts and bots of OOP.<br><br>One of the most efficient characteristic of OOP is that objects can be used to represent real-world entities. We can use a software object to represent an employee in a company, for instance. So what is object? An object is a fundamental element of program. In OOP, there are 7 important components:<br><ol><li>Object</li><li>Attribute</li><li>Method</li><li>Class</li><li>Encapsulation</li><li>Inheritance</li><li>Polymorphism</li></ol>Let's look through each of these.<br><br>OBJECT<br><ul><li>As I said, Object is the fundamental element of a program. [For instance, in a particular banking software, each bank account created by that software is an object.]<br></li><li>Every object has its own state and a set of behaviours. [For example, the current balance of a particular bank account(object) is its state. You can withdraw or deposit money from a bank account. Withdrawing and depositing are the behaviours of a bank account (object).</li></ul>ATTRIBUTE<br><ul><li>An object's attributes are the values it stores internally, which may be represented as primitive data or as other objects. [For instance, a bank account object may store a floating point number (a primitive value) that represents the balance of the account. It may contain other attribute such as the name of the account owner.</li></ul>METHOD<br><ul><li>It is a group of programming statements.</li><li>Methods are associated with an object.</li><li>Define potential behaviours of an object. [For example, being able to withdraw or deposit is the behaviour of an object. But methods make those behaviour works (code to withdraw or deposit money)</li></ul>CLASS<br><ul><li>An object is defined by a class.</li><li>The model or blueprint from which an object is created.</li><li>Class contains no space to store data but object.</li><li>Multiple objects can be created from a class which is called instantiation.</li></ul>ENCAPSULATION<br><ul><li>Protect and manage information of an object</li><li>It is what we called self-governing.</li><li>Make state of an object only be able to change its methods</li></ul>INHERITANCE<br><ul><li>Creating a new class based on an existing one.</li><li>It is a kind of reusing code.</li><li>Several classes can be inheritance.</li><li>The attributed and methods are inherited by derived class (mother class)</li></ul>POLYMORPHISM <br><ul><li>The ability to design powerful and elegant solution to problem that deal with multiple objects. [For example, there is an animal class. We can create lion, tiger, mouse, etc from it (objects). Each type of animal (object) has its own properties (states) and behaviours. Every animal make a sound. So there should be a sound method in an animal class. But not every animal makes the same sound. Lion has its own sound. Tiger has its own sound. So do we need to write code(method) for every animal? The answer is NO! We just need to write only one code but it will make a different sound depending on what type of animal is created. This is polymorphism.]</li></ul><font color="#ff6666">Excuse me</font> guy! My explanation is not necessarily a good one. Maybe I make you more confuse. But please think in a way I mentioned. If you understand very well overnight, that is not OOP. Please read further reference. I hid some of the features to make easier. This is <font color="#ff6666">JUST BRIEF</font>!<br><br>If i get more time, I will discuss about constructor, destructor and etc. At the meantime, make sure you understand OOP very well. Cheer!<br><br>
  • Registered Users
    Thanks for your sharing, Ko Tin Htoo Aung
    I'll be waiting for your next discussion.

    with Rgds,
Sign In or Register to comment.