Q1: Write the signature for a method that has one parameter of type String, and does not return a value.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
100%
Object Oriented Programming: 213COMP, 214COMP (Feb-2022)
Assignment- I [10 marks]
Academic honesty:
O Only pdf file accepted & student ID, will be your upload file.
O Student who submit copied work will obtain a mark of zero.
O Late work or attach file by email message not allowed.
Q1: Write the signature for a method that has one parameter of type String, and does
not return a value.
Q2: Write the signature for a method that has two parameters, both of type Student,
and returns an int value.
Q3: Write the constructor's headers of the followings?
new Student (202101156, “Ahmed");
new Address(51, "jazan university","CS&IT" );
new Grade(true, 505235600, 4.5);
Q4:
a) Write a class Student that define the following information:
name, stid , age.
b) Explain a mutators (setters) and accessors(getters) methods for each
attributes(fields).
c) Add three constructors:
• with empty constructor.
one parameter constructor (name of student)
two parameters constructor (name and stid)
d) Create two objects of Student
Transcribed Image Text:Object Oriented Programming: 213COMP, 214COMP (Feb-2022) Assignment- I [10 marks] Academic honesty: O Only pdf file accepted & student ID, will be your upload file. O Student who submit copied work will obtain a mark of zero. O Late work or attach file by email message not allowed. Q1: Write the signature for a method that has one parameter of type String, and does not return a value. Q2: Write the signature for a method that has two parameters, both of type Student, and returns an int value. Q3: Write the constructor's headers of the followings? new Student (202101156, “Ahmed"); new Address(51, "jazan university","CS&IT" ); new Grade(true, 505235600, 4.5); Q4: a) Write a class Student that define the following information: name, stid , age. b) Explain a mutators (setters) and accessors(getters) methods for each attributes(fields). c) Add three constructors: • with empty constructor. one parameter constructor (name of student) two parameters constructor (name and stid) d) Create two objects of Student
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,