logo

Class And objectives in Java Laguage

13 Pages1461 Words20 Views
   

Added on  2022-09-12

Class And objectives in Java Laguage

   Added on 2022-09-12

ShareRelated Documents
Running head: ENROLLMENT OF STUDENTS
ENROLLMENT OF STUDENTS
Enter the name of the Student:
Enter the name of the University:
Author note:
Class And objectives in Java Laguage_1
ENROLLMENT OF STUDENTS1
Part 1:
Class and objectives in Java:
Class and objectives are two of the most significant and essential concepts of object
oriented programming. These two concepts make object oriented programming different from
other traditional programming language and it makes this programming language so versatile
as well (Rana 2016). In this context, these two important concepts are described in details for
providing a comprehensive overview regarding what these concepts are, how these concepts
are applied in Java programming language as well.
Class:
Class is referred to as a blueprint or a prototype that helps in defining an object. This
blueprint or prototype is defined by users. It provides properties also known as methods that
are applicable for all objects that are of similar type (Braun and Horn 2017). While defining a
class in a program, there are some components that are required to be defined and these
components are the followings:
i) Modifiers: A class might be public or it might have default access.
ii) Class name: Name of a class should be defined with an initial letter.
iii) Superclass: It refers to parent of a class and a class can only extend one parent and this is
known as subclass.
iv) Interfaces: A class implements various interfaces which are separated by comma and
these interfaces are preceded by keyword implements.
v) Body: A class contain a body and it is defined within braces {}.
Object:
Class And objectives in Java Laguage_2
ENROLLMENT OF STUDENTS2
An object refers to an instance of a class defined within a program (Jackson 2016). It
consists of various components and these components are the followings:
i) State: It refers to attributes of an object.
ii) Behaviour: It refers to methods of an object.
iii) Identity: It helps to differentiate an object and helps it in interacting with other objects as
well.
Characters of OOPS
There are 4 major characters of OOPS that are to be considered. They are namely
Inheritance, polymorphism, Abstraction and Encapsulation.
Inheritance:
In this case the object acquires the properties as well as the behaviour of the parent
object. This process is known as inheritance (Dai 2019). This is known as one of the major
and important character of OOPS on which different programming concepts are based on.
Polymorphism:
In case a single task is performed in different ways it is known as the polymorphism.
This section also includes the fact that this character plays an essential role in any
programming process of Java (Kelly 2019). It have been seen that the method overloading
and method overriding is used in order to attain polymorphism.
Abstraction:
Hiding internal details as well as showing functionality is considered to be the main
feature of abstraction. This concept finds its place in performing proper assessment of
Class And objectives in Java Laguage_3
ENROLLMENT OF STUDENTS3
programming. It have been seen that abstract class as well as interface is used in Java for
achieving abstraction.
Encapsulation:
Encapsulation is considered to be a fundamental concept that betters the processing of
the data bundling and ensures that working on the data that falls under one unit is considered.
This charterer is often used for defining the internal representation as well as state of an
object from the outside.
From the above description, it can be stated that the primary objectives of the java
programming language is to make the entire programming process portable and simple. This
portable feature have been acting as one of the major feature of the Java programming
language. This section ensures that this feature have been enhancing the entire processing of
the programming scenario (McDonough 2017). Object Oriented programming have been
increasing the acceptance of the portability the programming features. Another aspect that is
to be considered in the process is that the security of the object oriented programming have
been very high. This higher security and robustness have been a major benefit.
Part 2:
Class Diagram:
Class And objectives in Java Laguage_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Unit 20 Advanced Programming - Assignment
|31
|3536
|337

Object Oriented Programming Terminology and Designing Pattern
|10
|1290
|232

OBJECT ORIENTED PROGRAMMING.
|5
|369
|484

Assignment on Explaining Polymorphism
|11
|1647
|313

Object Oriented Programming: Inheritance, Encapsulation, Polymorphism
|11
|1451
|340

Java Programming
|4
|710
|381