Object Oriented Methodology - OOM - Part 4.PPT, undefined for Object Oriented Programming. Indian Institute of Information Technology (IIIT)

Object Oriented Programming

Description: This document about  Object Oriented Methodology, C++, Java & C #, OOM design issues, Simple Class Example, The three principles of OOP, Inheritance .
Showing pages  1  -  4  of  58
1
Object Oriented Methodology
Object Oriented Methodology
Prof.Dr. O.P.Vyas3.2Data Mining
2
OOM
OOM
About OOP :
About OOP :
Procedure Oriented Vs. Object Oriented
OOP Concepts
OOP Concepts
Objects & Classes
Writing a Class & instantiating Objects in
Java
Problem solving in OOP methodology
OOPS Characteristics: Invoking Methods,
Inheritance: Making use of Inheritance.
Super & Final method
Implementation issues in Java
Implementation issues in Java
Organizing and Using Classes in Java
Java Features for OOPS
Java Features for OOPS
Java Package
Java Package
J2SE
J2SE
Prof.Dr. O.P.Vyas3.3Data Mining
The final Keyword
The final Keyword
The final keyword is used for creating constant variables. A final
variable cannot be changed after it has been assigned a value.
Now that we have seen inheritance and method overriding, the
other two uses of the final keyword can be :
Final class. A class can be declared final. A final class
cannot be subclassed.
Final method. A method can be declared final. A final
method cannot be overridden.
overridden.
Several of the classes in the Java API are declared final. For
example, the String class is final, so you cannot write a class
that extends String.
3
Prof.Dr. O.P.Vyas3.4Data Mining
Final
Final
The final keyword appears before the class keyword when
declaring a final class. For example:
public final class Hourly extends Employee
{
//Class definition...
}
A compiler error is generated if you try to write a class that
subclasses Hourly. The following class declaration will not compile:
public class PartTime extends Hourly //error!
{
//Class definition...
}
4
The preview of this document ends here! Please or to read the full document or to download it.
Document information
Uploaded by: krithika
Views: 5657
Downloads : 50+
Address:
University: Indian Institute of Information Technology (IIIT)
Upload date: 03/09/2011
Embed this document:
Docsity is not optimized for the browser you're using. In order to have a better experience please switch to Google Chrome, Firefox, Internet Explorer 9+ or Safari! Download Google Chrome