ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفهوم الوراثة Inheritance
إعدادي وتدريسي
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفهوم الوراثة Polymorphism
إعدادي وتدريسي
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفاهيم:
Class
Object
إعدادي وتدريسي
Object Oriented Programming_Chapter 3 (Two Lectures)
1- Let’s think on Inheritance
2- Let’s focus on Superclass’s Constructor
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
Object Oriented Programming_Chapter 4 (Two Lectures)
1- Let’s think on polymorphism
2- Let’s focus on Full Example
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
Object Oriented Programming_Lecture 3
Let’s think on fields of class
Visibility Modifiers and Accessor Methods
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفهوم مصفوفة الكائنات Array of Objects
إعدادي وتدريسي
chapter 1: Lecture 2
Let’s think on concept of Class and Object
- Concept of Objects and classes
- UML Class Diagram
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفهوم الوراثة Polymorphism
إعدادي وتدريسي
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفاهيم:
Class
Object
إعدادي وتدريسي
Object Oriented Programming_Chapter 3 (Two Lectures)
1- Let’s think on Inheritance
2- Let’s focus on Superclass’s Constructor
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
Object Oriented Programming_Chapter 4 (Two Lectures)
1- Let’s think on polymorphism
2- Let’s focus on Full Example
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
Object Oriented Programming_Lecture 3
Let’s think on fields of class
Visibility Modifiers and Accessor Methods
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
ملفات مساق البرمجة الهدفية (الشيئية) التي يتم تدريسها لطلبة بكالوريوس تكنولوجيا المعلومات وبكالوريوس تطوير نظم الحاسوب في الكلية الجامعية للعلوم والتكنولوجيا.
الملف يضم مفهوم مصفوفة الكائنات Array of Objects
إعدادي وتدريسي
chapter 1: Lecture 2
Let’s think on concept of Class and Object
- Concept of Objects and classes
- UML Class Diagram
الكلية الجامعية للعلوم والتكنولوجيا - خان يونس
University college of science & technology
Polymorphism in java, method overloading and method overridingJavaTportal
Polymorphism come from the two Greek words ‘poly’ meaning many and ‘morphs” meaning forms. The ability to exist in different form is called polymorphism. The same variable or method can perform different tasks; the programmer has the advantage of writing flexible code.
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
Lecture 8 abstract class and interfacemanish kumar
Abstract class and Interface both are used to achieve the concept of abstraction and using the interface we can implement the concept of multiple inheritance in java.
Polymorphism in java, method overloading and method overridingJavaTportal
Polymorphism come from the two Greek words ‘poly’ meaning many and ‘morphs” meaning forms. The ability to exist in different form is called polymorphism. The same variable or method can perform different tasks; the programmer has the advantage of writing flexible code.
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
Lecture 8 abstract class and interfacemanish kumar
Abstract class and Interface both are used to achieve the concept of abstraction and using the interface we can implement the concept of multiple inheritance in java.
Object Oriented Programming in Java _lecture 1Mahmoud Alfarra
Introduction to OOP
Let’s start with the first set of concepts
What is Object-Oriented Programming ?
Procedural vs. Object-Oriented Programming
OO Programming Concepts
XenServer in der Cloud
Der beste Hypervisor für Desktop Virtualisierung
Web-basierter Zugriff auf VMs in der Cloud
Plattform für virtuelle Networking Appliances (VPX)
Live Demo I
Desktop-Optimierungen in Citrix XenServer
Zugriff über Web Self-Service
Powering VPX
Networking für die Cloud
Einbindung von SaaS Anwendungen in bestehende Umgebungen und Auslagern von Diensten mittels OpenCloudAccess / OpenCloudBridge
Sicherheit und Hochverfügbarkeit mit Citrix NetScaler
Sicherer Zugriff, Hochverfügbarkeit aller Komponenten und Bereitstellung von Web Anwendungen
Citrix Receiver für jedes Endgerät - Zugriff auf virtuelle Desktops & Apps mit iPad, Blackberry, Android & Co.
HDX Technologien: WAN-Optimierung mit Branch Repeater - Integration in bestehende Citrix Umgebungen
Live Demo II
WAN-Optimierung
Zugriff mit Citrix Receiver
Produktvorstellung: OpenCloud Access / OpenCloud Bridge
Anger in the Light of J Krishnamurti TeachingsSaumitra Das
Anger hurts and tears us apart. Anger is such an emotion that only inflicts violence. In fact anger itself is violence. All religions and spiritual leaders have spoken about the dangers of anger. Lot of remedies have been prescribed by them to get rid of the anger but still people are in the flames of anger. Here attempt has been made to see the Anger in the light of J Krishnamurti teachings.
This article discusses the use of information and communication technology (ICT) in engendering sustainable development in Nigeria. The article identifies some critical areas where ICT can be applied in order to harness better results, e.g., e-government, e-heath care, e-agriculture, e-education, rural development, etc.
Active shooters and risks have been a factor in today's society countless number of times and we would and should teach our staff to react or do things that would save them. But in Health and Safety that seeing factor goes to seeing the HAZARD long before its a hazard.
Here is great coffee table or tool box reminder that lump in your clothes is not a large tuna fish sandwich
These are the best tips from millionaires to use in your business. These are important! How many are you actually setting aside time for?
Millionaires became millionaires because they took action. Beside each tip I created a checklist with ideas on how you can accomplish them. Enjoy!!
Know the difference between Inheritance and aggregation
Understand how inheritance is done in Java
Learn polymorphism through Method Overriding
Learn the keywords : super and final
Understand the basics of abstract class
Definition of classification
Basic principles of classification
Typical
How Does Classification Works?
Difference between Classification & Prediction.
Machine learning techniques
Decision Trees
k-Nearest Neighbors
What is Object-Oriented Programming ?
What classes, objects, methods ?
How to declare a class ?
How to use class to create an object?
How to declare methods in a class ?
What is a computer?
Computer Organization
Programming languages
Java Class Libraries
Typical Java development environment
Case Study: Unified Modeling Language
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty,
International FDP on Fundamentals of Research in Social Sciences
at Integral University, Lucknow, 06.06.2024
By Dr. Vinod Kumar Kanvaria
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
2. OO
OO
PP
http://mfarra.cst.ps
Contents
What is Inheritance ? Advantages1
Superclasses and Subclasses2
"is-a" and the "has-a" relationship3
Mini Example: Vehicle4
Constructors in Subclasses5
Example: Students’ types6
Single Vs Multiple inheritance7
Important Notes8
3. OO
OO
PP
What is Inheritance ?
Inheritance is a form of software reuse in
which a new class is created by absorbing
an existing class's members and
embellishing them with new or modified
capabilities.
http://mfarra.cst.ps
P_Properties
P_ methods
P_Properties
P_ methods Parent Class
C_Properties
C_methods
C_Properties
C_methods Child Class
This class has its
properties, methods
and that of its parent.
This class has its
properties, methods
and that of its parent.
4. OO
OO
PP
Advantages of Inheritance
http://mfarra.cst.ps
Using inheritance:
to minimize the amount of duplicate
code.
A better organization of code and
smaller, simpler compilation units.
make application code more flexible to
change because classes that inherit
from a common superclass can be
used interchangeably.
5. OO
OO
PP
Superclasses and Subclasses
http://mfarra.cst.ps
P_Properties
P_ methods
P_Properties
P_ methods SuperClass
C_Properties
C_methods
C_Properties
C_methods SubClass
When creating a class, rather than
declaring completely new members, the
programmer can designate that the new
class should inherit the members of an
existing class.
The existing class is called the
superclass, and the new class is the
subclass.
Each subclass can become the
superclass for future subclasses.
6. OO
OO
PP
Superclasses and Subclasses
http://mfarra.cst.ps
A subclass normally adds its own fields
and methods.
Therefore, a subclass is more specific
than its superclass.
Typically, the subclass exhibits the
behaviors of its superclass and
additional behaviors that are specific to
the subclass.
In Java, the class hierarchy begins with class
Object (in package java.lang), which every class
in Java directly or indirectly extends.
7. OO
OO
PP
properties3
methods3
properties3
methods3 SubClass
Direct & Indirect Superclasses
http://mfarra.cst.ps
The direct superclass is
the superclass from
which the subclass
explicitly inherits.
An indirect superclass
is any class above the
direct superclass in the
class hierarchy.
properties1
methods1
properties1
methods1 Indirect
SuperClass
properties2
methods2
properties2
methods2 Direct
SuperClass
8. OO
OO
PP
"is-a" and the "has-a" relationship
http://mfarra.cst.ps
"Is-a" represents inheritance.
In an "is-a" relationship, an object of a
subclass can also be treated as an object
of its superclass.
For example, a car is a vehicle.
Vehicle
Class
Vehicle
Class SuperClass
Car ClassCar Class SubClass
Honda is a car &
Honda is a vehicle
Honda is a car &
Honda is a vehicle
Object of sub is also an object of superObject of sub is also an object of super
9. OO
OO
PP
Mini Example: VehicleProject
http://mfarra.cst.ps
class Vehicle {
protected String model;
protected float price;
public Vehicle(String model, float price){
this.model = model;
this.price = price;
}
public String print(){
return "Model: "+model+"t Price: "+price;
}
public void setModel(String model){
this.model = model;
}
public String getModel(){
return model;
} // set and get of price
}
10. OO
OO
PP
Mini Example: Car class
http://mfarra.cst.ps
class Car extends Vehicle{
private int passengers;
public Car(String model, float price,int passengers){
super( model, price);
this.passengers = passengers;
}
public String print(){
return "Data is:n"+super.print()+
" # of passengers: "+passengers;
}
}
A compilation error occurs if a subclass constructor calls one
of its superclass constructors with arguments that do not
match the superclass constructor declarations.
11. OO
OO
PP
Mini Example: using sub & super class
http://mfarra.cst.ps
public class VehicleProjectInheritance {
public static void main(String[] args) {
Car c = new Car("Honda", 455.0f, 4);
System.out.println(c.print());
}
}
12. OO
OO
PP
Constructors in Subclasses
When a program creates a subclass object, the
subclass constructor immediately calls the
superclass constructor.
The superclass constructor's body executes to
initialize the superclass's instance variables that are
part of the subclass object, then the subclass
constructor's body executes to initialize the
subclass-only instance variables.
http://mfarra.cst.ps
13. OO
OO
PP
Constructors in Subclasses
http://mfarra.cst.ps
Public Test1(){
}
Public Test1(){
}
SuperClass
Public Test2(){
}
Public Test2(){
}
SubClass
calls
Return values
Subclass constructor invokes its direct superclass's
constructor either explicitly (via the super reference) or
implicitly (calling the superclass's default constructor or no-
argument constructor).
15. OO
OO
PP
Example: Student Class
http://mfarra.cst.ps
class Student {
protected String name;
protected String mobile;
protected float gpa;
public Student(String name, String mobile, float gpa){
this.name = name;
this.mobile = mobile;
this.gpa = gpa;
}
// set methods
public void setName(String name){
this.name= name;
}
…
// get methods
public String getName(){
return name;
}
….
// Print Data
public String showData(){
return "Name: "+getName()+"nMobile: "+getMobile()+"nGPA: "+getGpa();
} }
16. OO
OO
PP
Example: PostGraduated Class
http://mfarra.cst.ps
class PostGraduated extends Student {
private int hours;
public PostGraduated(String name, String mobile, float gpa,int hours){
super(name, mobile, gpa);
this.hours = hours;
}
// set method
public void setHours(int hours){
this.hours = hours;
}
// get method
public int getHours(){
return hours;
}
public String PrintData (){
return showData() + " Hours: "+getHours();
}
}
Declare another
method to calculate
the earn of post
graduate if the cost of
each hour is 20$.
17. OO
OO
PP
Example: Graduate Class
http://mfarra.cst.ps
class Graduate extends Student {
private String trainingField;
public Graduate(String name, String mobile, float gpa, String trainingField){
super(name, mobile, gpa);
this.trainingField = trainingField;
}
public void setTrainingField(String trainingField){
this.trainingField= trainingField;
}
public String setTrainingField(){
return trainingField;
}
public String Printinfo(){
return showData() + " TrainingField: "+getTrainingField();
}
}
Declare another
method to calculate
the grade of the
graduate student
(Excellent, V.Good, …)
18. OO
OO
PP
Method Overridden
http://mfarra.cst.ps
An instance method in a subclasssubclass with the
same signature (name, plus the number and the
type of its parameters) and return type as an
instance method in the superclasssuperclass overrides
the superclass's method.
public class Animal {
public static void testClassMethod() {
System.out.println("The class" + " method in Animal"); }
public void testInstanceMethod() {
System.out.println("The instance " + " method in Animal."); }
}
public class Cat extends Animal {
public static void testClassMethod() {
System.out.println("The class method" + " in Cat."); }
public void testInstanceMethod() {
System.out.println("The instance method" + " in Cat.");
}
Overrideby
Overrideby
19. OO
OO
PP
Method Overridden
http://mfarra.cst.ps
public int calcsal(int x){
sal = days*x;
return sal;
}
public int calcsal(int x){
sal = days*x;
return sal;
}
public int calcsal(int x){
sal = (days*x)- absent;
return sal;
}
public int calcsal(int x){
sal = (days*x)- absent;
return sal;
}
Super obj1 = new Super ();
int x = obj.
Super obj1 = new Super ();
int x = obj. Calcsal(20);Calcsal(20);
Super class
Sub class
Sub obj2 = new Super ();
int x = obj.
Sub obj2 = new Super ();
int x = obj. Calcsal(20);Calcsal(20);
20. OO
OO
PP
Method Overridden Vs Method Overloading
http://mfarra.cst.ps
Using code, distinguish between overridden and
overloading method.
Implement the concept of method overridden on the
methods of print in example of Students’ types
21. OO
OO
PP
Example: Inherited members from Student Class
http://mfarra.cst.ps
Inherited method
from student class
Inherited method
from student class
22. OO
OO
PP
Single Vs Multiple inheritance
Class 1Class 1 Class 2Class 2
Class 3Class 3
Class 1Class 1
Class 2Class 2
Multiple Inheritance Single Inheritance
Class can inherit members from more than
one class (more than one super class)
Class can inherit members from only
one class (one super class)
Java was designed without
multiple inheritance.
Java was designed without
multiple inheritance.
Java was designed with
single inheritance.
Java was designed with
single inheritance.
23. OO
OO
PP
Important Notes
Methods of a subclass cannot directly access
private members of their superclass.
With inheritance, the common instance variables
and methods of all the classes in the hierarchy
are declared in a superclass.
Use the protected access modifier when a superclass
should provide a method only to its subclasses and
other classes in the same package, but not to other
clients.
A subclass is more specific than its superclass
and represents a smaller group of objects.
A superclass's protected members have an
intermediate level of protection between public and
private access. They can be accessed by members of
the superclass, by members of its subclasses and by
members of other classes in the same package.