CSE Dept Engineering Topics List

Syntax with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

The class which is inherited is called the base class or the superclass and the class that does the inheriting is called the derived class or the subclass.The method defined in base class can be used in derived class.

Object Oriented Programming

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

The protected mode allows accessing the members to all the classes and subclasses in the same package as well as to the subclasses in other package. But the non subclasses in other package can not access the protected members.

OOPs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

In single inheritance there is one parent per derived class. This is the most common form of inheritance.

Definition, Concept, Advantages, Syntax

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

Definition: Inheritance is a mechanism in Java by which derived class can borrow the properties of base class and at the same time the derived class may have some additional properties.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

Inner classes are the nested classes. That means these are the classes that are defined inside the other classes.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

We can return an object from a method. The data type for such method is a class type. Java Program[ObjRetDemo.java]

Syntax with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

The object can be passed to a method as an argument. Using dot operator the object's value can be accessed. The parameter passed to this method is an object.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit II: Inheritance, Packages and Interfaces

Overloading is a mechanism in which we can use many methods having the same function name but can pass different number of parameters or different types of parameter.

Introduction to OOP and Java | Object Oriented Programming

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

Some of the separators that are used in Java. The variables in Java are allowed to get initialized at run time. Such. type of initialization is called dynamic initialization.

Syntax with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

Javadoc is a convenient, standard way to document your Java code. Javadoc is actually a special format of comments. There are some utilities that read the comments, and then generate HTML document based on the comments.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

The static members can be static data member or static method. The static members are those members which can be accessed without using object. Following program illustrates the use of static members.

with Example Java Programs

Subject and UNIT: Object Oriented Programming: Unit I: Introduction to OOP and Java

Access modifiers control access to data fields, methods, and classes. There are three modifiers used in Java - • public,• private, • default modifier