Assignment of CH-4 Class-XII Informatics Practices
Assignment of CH-4 Class-XII Informatics Practices
Class-XII
Informatics Practices
A. Define:
a. Oops
OOP concepts in Java are the main ideas behind Java's Object Oriented
Programming. They are an abstraction, encapsulation, inheritance, and
polymorphism. ... Basically, Java OOP concepts let us create working
methods and variables, then re-use all or part of them without
compromising security.
b. Class
Classes and Objects are basic concepts of Object Oriented Programming
which revolve around the real life entities. Class. A class is a user defined
blueprint or prototype from which objects are created. It represents the
set of properties or methods that are common to all objects of one type.
c. Objects
An object can be defined as an instance of a class, and there can be
multiple instances of a class in a program. An Object contains both the
data and the function, which operates on the data.
d. Methods
A method in object-oriented programming (OOP) is a procedure
associated with a message and an object.
g. Abstract Class
The classes for which it is not essential to declare objects to use them are
known as abstract classes. JOptionPane is one of the examples of an
abstract class.
h. Concrete class
The classes for which objects are required to be declared are known as
concrete classes like JLabel, JTextField, JComboBox etc.
l. Sub class
The derived class (the class that is derived from another class) is called a
subclass.
n. Base class
A base class is a class, in an object-oriented programming language, from
which other classes are derived. It facilitates the creation of
other classes that can reuse the code implicitly inherited from the base
class . A base class may also be called parent class or superclass.Derived
class.
o. Computer Programming
Computer coding is the use of computer programming languages to
give computers and machines instructions on what actions to perform.
Coding is the way humans communicate with machines, and it allows us
to create software like programs, operating systems, and mobile apps.
p. Procedural programming
The focus of procedural programming is to break down
a programming task into a collection of variables, data structures, and
subroutines, whereas in object-oriented programming it is to break down
a programming task into objects that expose behaviour (methods) and
data (members or attributes) using interfaces.