"Calculate Area of Any Type of Shape Using Abstract Class.": Sneha Ohol (17) Madhura Pansare
"Calculate Area of Any Type of Shape Using Abstract Class.": Sneha Ohol (17) Madhura Pansare
"Calculate Area of Any Type of Shape Using Abstract Class.": Sneha Ohol (17) Madhura Pansare
Micro project
On
Submitted By
Guided By:
Ms. S.Boharpi
Scheme, MSBTE)
Sinhgad Institutes
SOU.VENUTAI CHAVAN
SR NO CONTENTS PAGE NO
2 Rationale 3
4 Literature Review 4
7 Skills Developed 7
Annexure - I
A Micro-Project Proposal
1
Java Programming - 22412 Calculate Area Of Any Type Of Shape Using Abstract Class.
Name of
Sr. Planned Planned
Details of Activity responsible
No. Start Date Finish Date
Team members
Identify the requirements of the
1 19/04/2021 27/04/2021 Madhura Pansare
project.
2
Java Programming - 22412 Calculate Area Of Any Type Of Shape Using Abstract Class.
Annexure - II
Micro-Project Report
1.0 Rationale:
Abstraction in JAVA shows only the essential attributes and hides unnecessary details
of the object from the user. In Java, abstraction is accomplished using Abstract class,
Abstract methods, and Interfaces. Abstraction helps in reducing programming
complexity and effort.
ABSTRACT CLASS is a type of class in Java, that declare one or more abstract
methods. These classes can have abstract methods as well as concrete methods. A normal
class cannot have abstract methods. An abstract class is a class that contains at least one
abstract method.
.
2.0 Aim of the Micro-Project:
3
Java Programming - 22412 Calculate Area Of Any Type Of Shape Using Abstract Class.
Advantages of Abstraction:
4
Java Programming - 22412 Calculate Area Of Any Type Of Shape Using Abstract Class.
import java.lang.Math;
class Area
{
public static void main(String [] args)
{
Triangle t= new Triangle();
Rectangle r =new Rectangle();
Circle c =new Circle();
t.area();
r.area();
c.area();
}
}
8.0 Output:
6
Java Programming - 22412 Calculate Area Of Any Type Of Shape Using Abstract Class.
Abstraction in JAVA shows only the essential attributes and hides unnecessary details
of the object from the user. In Java, abstraction is accomplished using Abstract class,
Abstract methods, and Interfaces. Abstraction helps in reducing programming
complexity and effort.
12.0 Conclusion:
We learn to calculate area of various shape. Also, we developed a java file and learnt
various syntax in java.