Given the following code segments: class Programme{ b) private String name; private static int maxStudent; public Programme (string n, int max){ name = n; maxStudent = max; (ii) Rewrite the above class with a better design and patterm.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
Given the following code segments:
class Programme{
b)
private String name;
private static int maxStudent;
public Programme (string n, int max){
name = n;
maxStudent = max;
}
(ii) Rewrite the above class with a better design and pattern.
Transcribed Image Text:Given the following code segments: class Programme{ b) private String name; private static int maxStudent; public Programme (string n, int max){ name = n; maxStudent = max; } (ii) Rewrite the above class with a better design and pattern.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning