Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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)
Object Oriented Programming
bluej
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started