Question: Object Oriented Programming bluej Q1.(a) Create a class named Student with the fields: StudentName, StudentID, Age and MobileNo (data types are String and int). (1.5

Q1.(a) Create a class named Student with the fields: StudentName, StudentID, Age and MobileNo (data types are String and int). (1.5 Mark) (b)Declare an empty and a parameterized Constructor for the above class (Student) and set the StudentName and StudentID. (1.5 Mark) (c) Declare an accessor method PrintStudent() in Student class to display student details. (1 Mark) (d) Declare a mutator method UpdateAge() to increase the Age of a student by 2 years and print the updated Age. (1 Mark) Q2. What are the types of the following values? (1 Mark) 8 " 007 " False 3.142 Q3. What are the three essential components of a class? (2 Mark)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
