Documente Academic
Documente Profesional
Documente Cultură
LEARNING OUTCOMES
L.O.1: To understand and apply instantiation of a class
L.O.2: To use dot(.) operator to invoke members and methods of an instance
L.O.3: To be able to differentiate scope of variable w.r.t to static and instance methods
L.O.4: To be able to create objects of various classes from java API packages like javax.swing,
java.io
L.O.5: To implement inner classes in java.
1) Rakesh is participating in a Hackathon and it requires him to make a Login page. Help
him out by writing a program to create the page. It should look as follows: [L.O 4]
double tm=sd.TotalMarks();
else
double Maths=100,Physics=100,Chemistry=100;
{
// Fill these lines
double TotalMarks()
return totalMarks;
class InnerClass
r.displayResult();