SlideShare a Scribd company logo
1 of 3
Download to read offline
American International Journal of Business Management (AIJBM)
ISSN- 2379-106X, www.aijbm.com Volume 3, Issue 5 (May 2020), PP 01-03
*Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 1 | Page
Technology of Using Java Program in Teaching Computer
Science Course Justification of the Choice of the Topic of the
Dissertation
Assos. prof. Sevinj Jabrayilzada Azerbaijan/Baku
Keywords: OYP - Object Oriented Programming, Object, Class, Inheritance, Interface, Encapsulation, Field,
Property, Method, Instantiation, Initialization.
Annotation. Many Object Oriented Programming languages are currently available. Previously, it did not
matter how much time a programmer spent writing and setting up programs. With the advent of personal
computers, programmers began to improve the programming environment so as not to waste time. First of all,
the principle of reusing the code was born. According to this principle, what someone once created must be
collected and stored and used by other programmers in the form of ready-made blocks. Such program blocks are
called objects (OBJECT). When a new program needs to be developed, objects are removed from previous
programs and simply modified to meet the new requirements.
Practical significance: The concept of Object Oriented Programming in Java The methodology of teaching
students in higher education is as follows: Thus, the essence of Object Oriented Programming (OOP) is
explained sequentially. During the process, the importance of OYP in Java is emphasized.
Now let's look at the concept of OYP in Java. What is OYP in Java? These include concepts such as Object,
class, inheritance, interface, encapsulation…. Speaking of what they mean, I aim to ensure that these concepts
are well understood by relating them to real life examples. Of course, examples will be given using Java syntax.
When explaining the terms, I prefer not to translate it into Azeri.
Object: The key to understanding OOP logic is to understand the concept of Object. Think of the object in the
simplest way. Forget programming. Look around you. Everything you see is an object. The pen on your desk,
the tree in the garden, the car on the road, it's all an object. They have 2 points in common. We will focus on
these common points.
The first common point is that each object has its own characteristics. For example, the color of the pen, the
height of the tree, the make of the car ... Each object has its own characteristics. Another common point is that
each object has a behavior and an action. For example, a pen writes, a tree grows, a car moves ... They can be
multiplied, for example, we can talk about actions such as braking a car, refueling, turning on the headlights.
You can enter the world of OOP by looking at these points. Software objects have the same characteristics and
behavior as real-world objects. The properties of program objects are shown in fields called fields (sometimes
called property) and structures called methods (also called functions in some languages).
Methods allow you to control the properties of an object and allow the object to interact with external objects. In
this way, the internal structure of the object is hidden from other objects. In other words, other objects cannot
access properties, only communicate in a method-controlled way. This is called data encapsulation. This is one
of the basics of object-oriented programming.
There are many effective benefits to writing code using an object;
• Modularity: you can design and encode objects regardless of your application. After creating an object, you
can access and use it anywhere in your application.
• Privacy: You do not know what is going on inside the Object. Another programmer in the team may have
compiled an object. You don't know the properties of this object, you need to know how its methods work.
• Prevent code duplication: If one object is written, it can be written by another. You can use it in any
application. For example, if you used one file object in your application, you can use it in other applications. No
need to rewrite.
• Troubleshooting: When an error occurs in the system, an object may not be able to do its job properly. In this
case, you can ensure the proper functioning of the entire system by simply correcting and replacing that object.
Technology of using java program in teaching computer science course Justification of the …
*Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 2 | Page
Class: So there are many machines with the same features and the same actions. Each car has its own color,
speed, transmission ... etc. If a single car is called an object, and a common design is made for all cars, it is
called a class. In other words, an object is an instance of a class. Such a class can be written in java for the car.
1
2
3
4
5
6
7
8
9
10
11
class Car {
string color = "black";
int gear = 1;
void change Color(string new Value) {
color = new Value;
}
void change Gear(int new Value) {
gear = new Value;
}
}
Inheritance: Like a real-life legacy, a child acquires some of the characteristics of his parents, but also has his
own characteristics. A program can have subclasses of a class. These subclasses inherit the fields and methods
defined in the upper class and can also apply their own custom fields and methods. The fields and methods of an
upper class must not be private in order to be inherited by a lower class inheritance. In this case, all fields and
methods can be used even if they are not written in the class.
• There is no limit to the number of subclasses in a class.
• There can be only one upper class in a class. Java does not support many inheritance features.
In Java, a subclass application is implemented as follows;
1
2
3
4
5
class Truck extends Car {
//Truck spesifik field ve method’lar burada təyin olunur.
}
Interface: When creating an interface, we write the methods by which this interface must have classes. But we
do not implement it, we just write their names. If there was an interface for the car class;
1
2
3
4
5
6
7
interface ICar {
void change Color(string new Value);
void change Gear(int new Value);
}
as we define. The viewer understands how to use a car class without seeing any details. Make sure these
methods are in the car class. Of course, you must show that you implement this interface in the car class. You do
it here.
1
2
3
4
class Car implements ICar {
// Daha əvvəl Car class'ını yazdıq.Car class'ını daha önce yazmıştık.
// Interface'de göstərilən methodlar burada implement olunur.
}
Instantiation: After writing a class, creating objects that use that class is called instantiation. So you
create an example from that class. A new keyword is used for this. The new keyword allocates enough space in
memory and corresponds to an instance of this class and calls the constructor method to start.
Constructor: There is a specific method for each class. What distinguishes this method from other methods is
that it has the same name as the class and does not return any value. This method is also called when creating an
object from a class, that is, during the instantiation phase. If your class does not have a constructor, the Java
Compiler explicitly creates it and calls a constructor that does not take any parameters. This constructor also
calls an empty constructor belonging to the upper class of your class. If there is no top class, the empty
constructor of the Object class, which exists as a build in Java, is called (the Object class is the base class, and if
we do not write, in fact, each class inherits from the Object class). I suggest you write your constructors here.
Do not allow the compiler to solve this problem for you, otherwise you may face problems.
Initialization: We said that in the instantiation phase, space is allocated in memory for the object and
the constructor is called. The constructor assigns initial values to the fields in this field, a process called
initialization. Let me show what I said in the last 3 headings by experimenting;
Technology of using java program in teaching computer science course Justification of the …
*Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 3 | Page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Car {
private string color;
private int speed;
private int gear;
public Car () {
color = "black";
speed = 0;
gear = 1;
}
public Car (string new Color, int new Speed, int new Gear) {
color = new Color;
speed = new Speed;
gear = new Gear;
}
}
I rewrote the Car class above. Let's create objects of this class;
1
2
3
4
5
6
7
8
public class Car Factory {
public static void main(String[] args) {
//* c1 ve c2 adlı 2 Car object'i yaradaq
Car c1 = new Car();
Car c2 = new Car("white", 80, 2);
}
}
The Car c1 part of the code here is known as decleration and is similar to creating any primitive variable. For
example, int number = 5; As you said, you create a variable for your object. However, there is a difference, this
variable (c1 and c2) does not store the object itself, but the memory area where the object is located, ie a pointer.
You separate the field with new, assign the field address to the variable, and start with the constructor.
REFERENCE
[1]. Java Programming Language and Writing Design. Altug B. Altintas (an excellent book for beginners in
Java) 2010.
[2]. Jon Byous “Java Technology” 2005 the early years.
[3]. https://www.w3schools.com/java/java_oop.asp
Assos. prof. Sevinj Jabrayilzada Azerbaijan/Baku

More Related Content

What's hot

java - oop's in depth journey
java - oop's in depth journeyjava - oop's in depth journey
java - oop's in depth journeySudharsan Selvaraj
 
oop Lecture 11
oop Lecture 11oop Lecture 11
oop Lecture 11Anwar Ul Haq
 
2CPP03 - Object Orientation Fundamentals
2CPP03 - Object Orientation Fundamentals2CPP03 - Object Orientation Fundamentals
2CPP03 - Object Orientation FundamentalsMichael Heron
 
Basics of Object Oriented Programming
Basics of Object Oriented ProgrammingBasics of Object Oriented Programming
Basics of Object Oriented ProgrammingAbhilash Nair
 
oop Lecture 16
oop Lecture 16oop Lecture 16
oop Lecture 16Anwar Ul Haq
 
Object Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part IIObject Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part IIAjit Nayak
 
Gui programming (awt)
Gui programming (awt)Gui programming (awt)
Gui programming (awt)Ravi_Kant_Sahu
 
JavaScript OOPS Implimentation
JavaScript OOPS ImplimentationJavaScript OOPS Implimentation
JavaScript OOPS ImplimentationUsman Mehmood
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorialsakreyi
 
Java se 8 fundamentals
Java se 8 fundamentalsJava se 8 fundamentals
Java se 8 fundamentalsmegharajk
 
Object Oriended Programming with Java
Object Oriended Programming with JavaObject Oriended Programming with Java
Object Oriended Programming with JavaJakir Hossain
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and javaMadishetty Prathibha
 
Java OOPS Concept
Java OOPS ConceptJava OOPS Concept
Java OOPS ConceptRicha Gupta
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming University of Potsdam
 
C# Summer course - Lecture 1
C# Summer course - Lecture 1C# Summer course - Lecture 1
C# Summer course - Lecture 1mohamedsamyali
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfArpana Awasthi
 
Beginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHPBeginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHPRick Ogden
 
Java script
Java scriptJava script
Java scriptPrarthan P
 
OCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardOCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardHari kiran G
 

What's hot (20)

java - oop's in depth journey
java - oop's in depth journeyjava - oop's in depth journey
java - oop's in depth journey
 
oop Lecture 11
oop Lecture 11oop Lecture 11
oop Lecture 11
 
2CPP03 - Object Orientation Fundamentals
2CPP03 - Object Orientation Fundamentals2CPP03 - Object Orientation Fundamentals
2CPP03 - Object Orientation Fundamentals
 
Basics of Object Oriented Programming
Basics of Object Oriented ProgrammingBasics of Object Oriented Programming
Basics of Object Oriented Programming
 
oop Lecture 16
oop Lecture 16oop Lecture 16
oop Lecture 16
 
Javanotes
JavanotesJavanotes
Javanotes
 
Object Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part IIObject Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part II
 
Gui programming (awt)
Gui programming (awt)Gui programming (awt)
Gui programming (awt)
 
JavaScript OOPS Implimentation
JavaScript OOPS ImplimentationJavaScript OOPS Implimentation
JavaScript OOPS Implimentation
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
 
Java se 8 fundamentals
Java se 8 fundamentalsJava se 8 fundamentals
Java se 8 fundamentals
 
Object Oriended Programming with Java
Object Oriended Programming with JavaObject Oriended Programming with Java
Object Oriended Programming with Java
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and java
 
Java OOPS Concept
Java OOPS ConceptJava OOPS Concept
Java OOPS Concept
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
 
C# Summer course - Lecture 1
C# Summer course - Lecture 1C# Summer course - Lecture 1
C# Summer course - Lecture 1
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdf
 
Beginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHPBeginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHP
 
Java script
Java scriptJava script
Java script
 
OCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardOCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference Card
 

Similar to A350103

Session 3 - Object oriented programming with Objective-C (part 1)
Session 3 - Object oriented programming with Objective-C (part 1)Session 3 - Object oriented programming with Objective-C (part 1)
Session 3 - Object oriented programming with Objective-C (part 1)Vu Tran Lam
 
OOP in C# Classes and Objects.
OOP in C# Classes and Objects.OOP in C# Classes and Objects.
OOP in C# Classes and Objects.Abid Kohistani
 
object oriented programing lecture 1
object oriented programing lecture 1object oriented programing lecture 1
object oriented programing lecture 1Geophery sanga
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsSaurabh Narula
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2Rakesh Madugula
 
Design patterns in javascript
Design patterns in javascriptDesign patterns in javascript
Design patterns in javascriptAyush Sharma
 
CAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEMCAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEMAbhishek Shakya
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented ProgrammingMuhammad Jahanzaib
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionNarinder Kumar
 
Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1LK394
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for seleniumapoorvams
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010Rich Helton
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to JavaSMIJava
 
java basic .pdf
java basic .pdfjava basic .pdf
java basic .pdfSatish More
 

Similar to A350103 (20)

Session 3 - Object oriented programming with Objective-C (part 1)
Session 3 - Object oriented programming with Objective-C (part 1)Session 3 - Object oriented programming with Objective-C (part 1)
Session 3 - Object oriented programming with Objective-C (part 1)
 
O op lecture 04
O op lecture 04O op lecture 04
O op lecture 04
 
OOP lecture 04
OOP  lecture 04OOP  lecture 04
OOP lecture 04
 
OOP in C# Classes and Objects.
OOP in C# Classes and Objects.OOP in C# Classes and Objects.
OOP in C# Classes and Objects.
 
object oriented programing lecture 1
object oriented programing lecture 1object oriented programing lecture 1
object oriented programing lecture 1
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 Fundamentals
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2
 
Design patterns in javascript
Design patterns in javascriptDesign patterns in javascript
Design patterns in javascript
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
CAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEMCAR SHOWROOM SYSTEM
CAR SHOWROOM SYSTEM
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall session
 
Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
 
JAVA-PPT'S.pdf
JAVA-PPT'S.pdfJAVA-PPT'S.pdf
JAVA-PPT'S.pdf
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
 
java basic .pdf
java basic .pdfjava basic .pdf
java basic .pdf
 
Java notes
Java notesJava notes
Java notes
 

More from aijbm

E582740.pdf
E582740.pdfE582740.pdf
E582740.pdfaijbm
 
A580108.pdf
A580108.pdfA580108.pdf
A580108.pdfaijbm
 
F584145.pdf
F584145.pdfF584145.pdf
F584145.pdfaijbm
 
B580914.pdf
B580914.pdfB580914.pdf
B580914.pdfaijbm
 
H585357.pdf
H585357.pdfH585357.pdf
H585357.pdfaijbm
 
G584652.pdf
G584652.pdfG584652.pdf
G584652.pdfaijbm
 
D582026.pdf
D582026.pdfD582026.pdf
D582026.pdfaijbm
 
C581519.pdf
C581519.pdfC581519.pdf
C581519.pdfaijbm
 
P57130135.pdf
P57130135.pdfP57130135.pdf
P57130135.pdfaijbm
 
M5799113.pdf
M5799113.pdfM5799113.pdf
M5799113.pdfaijbm
 
O57120129.pdf
O57120129.pdfO57120129.pdf
O57120129.pdfaijbm
 
R57139145.pdf
R57139145.pdfR57139145.pdf
R57139145.pdfaijbm
 
J577177.pdf
J577177.pdfJ577177.pdf
J577177.pdfaijbm
 
Q57136138.pdf
Q57136138.pdfQ57136138.pdf
Q57136138.pdfaijbm
 
C572126.pdf
C572126.pdfC572126.pdf
C572126.pdfaijbm
 
F574050.pdf
F574050.pdfF574050.pdf
F574050.pdfaijbm
 
E573539.pdf
E573539.pdfE573539.pdf
E573539.pdfaijbm
 
I576670.pdf
I576670.pdfI576670.pdf
I576670.pdfaijbm
 
S57146154.pdf
S57146154.pdfS57146154.pdf
S57146154.pdfaijbm
 
K577886.pdf
K577886.pdfK577886.pdf
K577886.pdfaijbm
 

More from aijbm (20)

E582740.pdf
E582740.pdfE582740.pdf
E582740.pdf
 
A580108.pdf
A580108.pdfA580108.pdf
A580108.pdf
 
F584145.pdf
F584145.pdfF584145.pdf
F584145.pdf
 
B580914.pdf
B580914.pdfB580914.pdf
B580914.pdf
 
H585357.pdf
H585357.pdfH585357.pdf
H585357.pdf
 
G584652.pdf
G584652.pdfG584652.pdf
G584652.pdf
 
D582026.pdf
D582026.pdfD582026.pdf
D582026.pdf
 
C581519.pdf
C581519.pdfC581519.pdf
C581519.pdf
 
P57130135.pdf
P57130135.pdfP57130135.pdf
P57130135.pdf
 
M5799113.pdf
M5799113.pdfM5799113.pdf
M5799113.pdf
 
O57120129.pdf
O57120129.pdfO57120129.pdf
O57120129.pdf
 
R57139145.pdf
R57139145.pdfR57139145.pdf
R57139145.pdf
 
J577177.pdf
J577177.pdfJ577177.pdf
J577177.pdf
 
Q57136138.pdf
Q57136138.pdfQ57136138.pdf
Q57136138.pdf
 
C572126.pdf
C572126.pdfC572126.pdf
C572126.pdf
 
F574050.pdf
F574050.pdfF574050.pdf
F574050.pdf
 
E573539.pdf
E573539.pdfE573539.pdf
E573539.pdf
 
I576670.pdf
I576670.pdfI576670.pdf
I576670.pdf
 
S57146154.pdf
S57146154.pdfS57146154.pdf
S57146154.pdf
 
K577886.pdf
K577886.pdfK577886.pdf
K577886.pdf
 

Recently uploaded

GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in managementchhavia330
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc.../:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...lizamodels9
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...lizamodels9
 
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 

Recently uploaded (20)

GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in management
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow đź’‹ Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc.../:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
/:Call Girls In Jaypee Siddharth - 5 Star Hotel New Delhi ➥9990211544 Top Esc...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
 
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 

A350103

  • 1. American International Journal of Business Management (AIJBM) ISSN- 2379-106X, www.aijbm.com Volume 3, Issue 5 (May 2020), PP 01-03 *Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 1 | Page Technology of Using Java Program in Teaching Computer Science Course Justification of the Choice of the Topic of the Dissertation Assos. prof. Sevinj Jabrayilzada Azerbaijan/Baku Keywords: OYP - Object Oriented Programming, Object, Class, Inheritance, Interface, Encapsulation, Field, Property, Method, Instantiation, Initialization. Annotation. Many Object Oriented Programming languages are currently available. Previously, it did not matter how much time a programmer spent writing and setting up programs. With the advent of personal computers, programmers began to improve the programming environment so as not to waste time. First of all, the principle of reusing the code was born. According to this principle, what someone once created must be collected and stored and used by other programmers in the form of ready-made blocks. Such program blocks are called objects (OBJECT). When a new program needs to be developed, objects are removed from previous programs and simply modified to meet the new requirements. Practical significance: The concept of Object Oriented Programming in Java The methodology of teaching students in higher education is as follows: Thus, the essence of Object Oriented Programming (OOP) is explained sequentially. During the process, the importance of OYP in Java is emphasized. Now let's look at the concept of OYP in Java. What is OYP in Java? These include concepts such as Object, class, inheritance, interface, encapsulation…. Speaking of what they mean, I aim to ensure that these concepts are well understood by relating them to real life examples. Of course, examples will be given using Java syntax. When explaining the terms, I prefer not to translate it into Azeri. Object: The key to understanding OOP logic is to understand the concept of Object. Think of the object in the simplest way. Forget programming. Look around you. Everything you see is an object. The pen on your desk, the tree in the garden, the car on the road, it's all an object. They have 2 points in common. We will focus on these common points. The first common point is that each object has its own characteristics. For example, the color of the pen, the height of the tree, the make of the car ... Each object has its own characteristics. Another common point is that each object has a behavior and an action. For example, a pen writes, a tree grows, a car moves ... They can be multiplied, for example, we can talk about actions such as braking a car, refueling, turning on the headlights. You can enter the world of OOP by looking at these points. Software objects have the same characteristics and behavior as real-world objects. The properties of program objects are shown in fields called fields (sometimes called property) and structures called methods (also called functions in some languages). Methods allow you to control the properties of an object and allow the object to interact with external objects. In this way, the internal structure of the object is hidden from other objects. In other words, other objects cannot access properties, only communicate in a method-controlled way. This is called data encapsulation. This is one of the basics of object-oriented programming. There are many effective benefits to writing code using an object; • Modularity: you can design and encode objects regardless of your application. After creating an object, you can access and use it anywhere in your application. • Privacy: You do not know what is going on inside the Object. Another programmer in the team may have compiled an object. You don't know the properties of this object, you need to know how its methods work. • Prevent code duplication: If one object is written, it can be written by another. You can use it in any application. For example, if you used one file object in your application, you can use it in other applications. No need to rewrite. • Troubleshooting: When an error occurs in the system, an object may not be able to do its job properly. In this case, you can ensure the proper functioning of the entire system by simply correcting and replacing that object.
  • 2. Technology of using java program in teaching computer science course Justification of the … *Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 2 | Page Class: So there are many machines with the same features and the same actions. Each car has its own color, speed, transmission ... etc. If a single car is called an object, and a common design is made for all cars, it is called a class. In other words, an object is an instance of a class. Such a class can be written in java for the car. 1 2 3 4 5 6 7 8 9 10 11 class Car { string color = "black"; int gear = 1; void change Color(string new Value) { color = new Value; } void change Gear(int new Value) { gear = new Value; } } Inheritance: Like a real-life legacy, a child acquires some of the characteristics of his parents, but also has his own characteristics. A program can have subclasses of a class. These subclasses inherit the fields and methods defined in the upper class and can also apply their own custom fields and methods. The fields and methods of an upper class must not be private in order to be inherited by a lower class inheritance. In this case, all fields and methods can be used even if they are not written in the class. • There is no limit to the number of subclasses in a class. • There can be only one upper class in a class. Java does not support many inheritance features. In Java, a subclass application is implemented as follows; 1 2 3 4 5 class Truck extends Car { //Truck spesifik field ve method’lar burada tÉ™yin olunur. } Interface: When creating an interface, we write the methods by which this interface must have classes. But we do not implement it, we just write their names. If there was an interface for the car class; 1 2 3 4 5 6 7 interface ICar { void change Color(string new Value); void change Gear(int new Value); } as we define. The viewer understands how to use a car class without seeing any details. Make sure these methods are in the car class. Of course, you must show that you implement this interface in the car class. You do it here. 1 2 3 4 class Car implements ICar { // Daha É™vvÉ™l Car class'ını yazdıq.Car class'ını daha önce yazmıştık. // Interface'de göstÉ™rilÉ™n methodlar burada implement olunur. } Instantiation: After writing a class, creating objects that use that class is called instantiation. So you create an example from that class. A new keyword is used for this. The new keyword allocates enough space in memory and corresponds to an instance of this class and calls the constructor method to start. Constructor: There is a specific method for each class. What distinguishes this method from other methods is that it has the same name as the class and does not return any value. This method is also called when creating an object from a class, that is, during the instantiation phase. If your class does not have a constructor, the Java Compiler explicitly creates it and calls a constructor that does not take any parameters. This constructor also calls an empty constructor belonging to the upper class of your class. If there is no top class, the empty constructor of the Object class, which exists as a build in Java, is called (the Object class is the base class, and if we do not write, in fact, each class inherits from the Object class). I suggest you write your constructors here. Do not allow the compiler to solve this problem for you, otherwise you may face problems. Initialization: We said that in the instantiation phase, space is allocated in memory for the object and the constructor is called. The constructor assigns initial values to the fields in this field, a process called initialization. Let me show what I said in the last 3 headings by experimenting;
  • 3. Technology of using java program in teaching computer science course Justification of the … *Corresponding Author: Prof. Sevinj Jabrayilzada ww.aijbm.com 3 | Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 class Car { private string color; private int speed; private int gear; public Car () { color = "black"; speed = 0; gear = 1; } public Car (string new Color, int new Speed, int new Gear) { color = new Color; speed = new Speed; gear = new Gear; } } I rewrote the Car class above. Let's create objects of this class; 1 2 3 4 5 6 7 8 public class Car Factory { public static void main(String[] args) { //* c1 ve c2 adlı 2 Car object'i yaradaq Car c1 = new Car(); Car c2 = new Car("white", 80, 2); } } The Car c1 part of the code here is known as decleration and is similar to creating any primitive variable. For example, int number = 5; As you said, you create a variable for your object. However, there is a difference, this variable (c1 and c2) does not store the object itself, but the memory area where the object is located, ie a pointer. You separate the field with new, assign the field address to the variable, and start with the constructor. REFERENCE [1]. Java Programming Language and Writing Design. Altug B. Altintas (an excellent book for beginners in Java) 2010. [2]. Jon Byous “Java Technology” 2005 the early years. [3]. https://www.w3schools.com/java/java_oop.asp Assos. prof. Sevinj Jabrayilzada Azerbaijan/Baku