SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
1. Create a class Author which takes three instance variables, name (type string), email (type
string) and gender (char). a. Write a constructor to initialize the variables. The provide a static
count variable will be automatically keeping track of the number of authors created. b. Provide
getter and setter for the instance variables c. Write a tostring method to print the object in the
following format Mohammad Rasheed (male), mrasheedegmailcom d. Write a totalAuthor
method to show the number of authors. Sample output

Más contenido relacionado

Más de alpha1211

1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf
alpha1211
 
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
alpha1211
 
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
alpha1211
 

Más de alpha1211 (20)

1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
 
1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf
 
1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf
 
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
 
1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf
 
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
 
1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf
 
1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf
 
1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf
 
1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf
 
1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf
 
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
 
1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf
 
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
 
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
 
1. A real-world difficulty of applying utilitarianism is thata. S.pdf
1. A real-world difficulty of applying utilitarianism is thata. S.pdf1. A real-world difficulty of applying utilitarianism is thata. S.pdf
1. A real-world difficulty of applying utilitarianism is thata. S.pdf
 
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
 
1. (12) What do each of the following do Be as detailed as possible.pdf
1. (12) What do each of the following do Be as detailed as possible.pdf1. (12) What do each of the following do Be as detailed as possible.pdf
1. (12) What do each of the following do Be as detailed as possible.pdf
 
1. A bank has the following asset portfolioi. 100 mn Government B.pdf
1. A bank has the following asset portfolioi. 100 mn Government B.pdf1. A bank has the following asset portfolioi. 100 mn Government B.pdf
1. A bank has the following asset portfolioi. 100 mn Government B.pdf
 
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

1. Create a class Author which takes three instance variables, name.pdf

  • 1. 1. Create a class Author which takes three instance variables, name (type string), email (type string) and gender (char). a. Write a constructor to initialize the variables. The provide a static count variable will be automatically keeping track of the number of authors created. b. Provide getter and setter for the instance variables c. Write a tostring method to print the object in the following format Mohammad Rasheed (male), mrasheedegmailcom d. Write a totalAuthor method to show the number of authors. Sample output