انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Java Conversation

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 3
أستاذ المادة مهدي عبادي مانع الموسوي       13/11/2018 15:16:48
Constructor Overloading
As with methods, constructors can be overloaded.
• Argument lists must differ.
• You can use the this reference at the first line of a constructor to call another constructor.

Constructing and Initializing Objects:
Memory is allocated and default initialization occurs.
Instance variable initialization uses these steps recursively:
1. Bind constructor parameters.
2. If explicit this(), call recursively, and then skip to Step 5.
3. Call recursively the implicit or explicit super call, except for Object.
4. Execute the explicit instance variable initializers.
5. Execute the body of the current constructor.




This information allows the compiler to deduce an apparent type for any expression and this deduction then allows it to determine the legality of an assignment
For Java is a strongly types language, which means that the Java compiler checks the code to ensure that every assignment and every call is type correct. If a type error is discovered, compilation fails with an error message.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم