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

 Object Oriented Programming bluej Q1.(a) Create a class named Student with
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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!