Sunday, February 1, 2015
Like the article?
Hi guys!
Today we are going to learn couple of java OOP ( Object Oriented Programming ) concepts.
Before starting, go through this article: JAVA Tutorial : Inheritance Example Codes
Today we are going to learn couple of java OOP ( Object Oriented Programming ) concepts.
Before starting, go through this article: JAVA Tutorial : Inheritance Example Codes
Abstract Class and Example in JAVA:
package interfacez; /* This is a simple abstract class. An abstract class is a call of which no object can be created. Use 'abstract' keyword to make a class abstract. Methods can be abstract too. If in a class a method is abstract the class must have to be abstract. */ public abstract class myabstractclass { public static void main(String[] args) { // TODO Auto-generated method stub } /* An abstract method must not have a body. In an abstract class you can have a non abstract method. */ abstract public void specialAbstractMethod(); }
Java interface: Creating Java Interface
package interfacez; /* This is my interface. I will inherit this from my main class. This is also the java super class for my main class from which i will call this file and access those methods. */ public interface createinterface { // creating four methods public void website(); public void android_app(); public void ios_app(); public void windows_app(); }
Java interface: Calling methods from main class
package interfacez; /* Interface is a type that brings behaviors which a class can implement according to its need. implements keyword is used to implement an interface in a java class. Interface is a class like thing which is 100% abstract. A class can implement any number of interfaces that it wants.If needed interface can be extended using inheritance concept of OOP( Object Oriented Programming. ) */ public class myinterfaceclass implements createinterface{ public static void main(String[] args) { /* creating object for my class, so that i can call the methods that have come from interface. */ myinterfaceclass Apps_Object = new myinterfaceclass(); /* Calling the methods using my object. */ Apps_Object.website(); Apps_Object.ios_app(); Apps_Object.android_app(); Apps_Object.windows_app(); } /* Overriding the abstract methods that have come from interface. */ public void website(){ System.out.println("Java tutorials on my website."); } public void android_app(){ System.out.println("PHP tutorials on my android app."); } public void ios_app(){ System.out.println("JavaScript tutorials on my iOS App."); } public void windows_app(){ System.out.println("C Sharp ( C# ) on my windows app."); } }Hope this helps you! don't forget to share and subscribe!
Read More: Differences Between Programmers and Coders
RELATED POSTS
Subscribe to:
Post Comments (Atom)
Search
Powered by Blogger.
Contact with Rubel
Popular Articles
-
Hello mobile apps developers! if you are developing Mobile application in Phonegap platform. You might face a problem in sometime ' C...
-
Hello Google Play Android Developers! Recently, Google is forcing its developers to use Android Studio rather than using Android Developmen...
-
Hello developers! Hope you are doing well. Many people are coming to application developing, specially in the Android arena. Now, What! Th...
-
Polymorphism We are going to create four Java class in our Polymorphism class. Those are: 1. human.java class 2. women.java class...
-
Even if you are not from Computer Engineering background, still you can have Career in Mobile Application Development. Honestly speaking, b...
-
People related to programming and coding often make mistakes or misuse the words Coders and Programmers by not knowing properly. So, questi...
-
Today we are going to learn Inheritance in JAVA. I've created four java class file. Those are: 1. fatherswealth.java ( Superclass ) ...
Tags
- About Me
- admob
- advice
- Android
- Android Development
- android help
- Android SDK set Up
- Android Studio
- Apps development
- Artcell
- bluehost
- body building
- Can't you make your body building at home?
- Career
- career opportunities
- Coding
- coding problem
- computer science and engineering
- cse
- CSS
- css tricks
- Differences Between Programmers and Coders
- Do you really need to go at Gym?
- Do you really need to go to Gym for having a good shaped body?
- Education
- engineering
- Error
- experience sharing
- fitness center
- Free templates
- good life advice
- google adsense
- google adsense success
- google play
- google play account open
- gym
- hostgator
- How can I get a Google Adsense account
- How to be a freelance
- How to develop android application
- how to develop mobile application
- how to earn money online
- how to make money online
- how to monetize mobile application
- HTML
- HTML/CSS
- Java Tutorial
- Lifestyle
- Linux
- Linux Os
- making money online
- Mobile Application Development
- mosharrof rubel
- noakhali zilla school
- online earning tips
- online earning ways
- phonegap
- Phonegap problem
- Programming
- r cannot be resolved to a variable type
- rubel
- software engineering
- southeast university
- Templates
- Ubuntu
- Ubuntu Help
- web hosting buy
- web hosting reseller
- why computer science?
- wordpress theme
Techonlogy
Subscribe Here
Label
- About Me
- admob
- advice
- Android
- Android Development
- android help
- Android SDK set Up
- Android Studio
- Apps development
- Artcell
- bluehost
- body building
- Can't you make your body building at home?
- Career
- career opportunities
- Coding
- coding problem
- computer science and engineering
- cse
- CSS
- css tricks
- Differences Between Programmers and Coders
- Do you really need to go at Gym?
- Do you really need to go to Gym for having a good shaped body?
- Education
- engineering
- Error
- experience sharing
- fitness center
- Free templates
- good life advice
- google adsense
- google adsense success
- google play
- google play account open
- gym
- hostgator
- How can I get a Google Adsense account
- How to be a freelance
- How to develop android application
- how to develop mobile application
- how to earn money online
- how to make money online
- how to monetize mobile application
- HTML
- HTML/CSS
- Java Tutorial
- Lifestyle
- Linux
- Linux Os
- making money online
- Mobile Application Development
- mosharrof rubel
- noakhali zilla school
- online earning tips
- online earning ways
- phonegap
- Phonegap problem
- Programming
- r cannot be resolved to a variable type
- rubel
- software engineering
- southeast university
- Templates
- Ubuntu
- Ubuntu Help
- web hosting buy
- web hosting reseller
- why computer science?
- wordpress theme
Sponsor
Categories
- About Me
- admob
- advice
- Android
- Android Development
- android help
- Android SDK set Up
- Android Studio
- Apps development
- Artcell
- bluehost
- body building
- Can't you make your body building at home?
- Career
- career opportunities
- Coding
- coding problem
- computer science and engineering
- cse
- CSS
- css tricks
- Differences Between Programmers and Coders
- Do you really need to go at Gym?
- Do you really need to go to Gym for having a good shaped body?
- Education
- engineering
- Error
- experience sharing
- fitness center
- Free templates
- good life advice
- google adsense
- google adsense success
- google play
- google play account open
- gym
- hostgator
- How can I get a Google Adsense account
- How to be a freelance
- How to develop android application
- how to develop mobile application
- how to earn money online
- how to make money online
- how to monetize mobile application
- HTML
- HTML/CSS
- Java Tutorial
- Lifestyle
- Linux
- Linux Os
- making money online
- Mobile Application Development
- mosharrof rubel
- noakhali zilla school
- online earning tips
- online earning ways
- phonegap
- Phonegap problem
- Programming
- r cannot be resolved to a variable type
- rubel
- software engineering
- southeast university
- Templates
- Ubuntu
- Ubuntu Help
- web hosting buy
- web hosting reseller
- why computer science?
- wordpress theme
About
Social Share
Recent
Business
Video
Gallery
videos
Popular Posts
-
Hello mobile apps developers! if you are developing Mobile application in Phonegap platform. You might face a problem in sometime ' C...
-
Hello Google Play Android Developers! Recently, Google is forcing its developers to use Android Studio rather than using Android Developmen...
-
Even if you are not from Computer Engineering background, still you can have Career in Mobile Application Development. Honestly speaking, b...
-
You could find this topic little bit interesting and may not be hoping from me! Well, I was at gym for almost one year and I think I'm ...
-
Today, we are going to learn about Thread in JAVA. simpleThread.java Class public class simpleThread implements Runnable { /* ...
-
Polymorphism We are going to create four Java class in our Polymorphism class. Those are: 1. human.java class 2. women.java class...
-
Array: An array is something more or less like a container of data. Array container contains same type of data. Read More from Orac...
-
People related to programming and coding often make mistakes or misuse the words Coders and Programmers by not knowing properly. So, questi...
-
Today we are going to learn Inheritance in JAVA. I've created four java class file. Those are: 1. fatherswealth.java ( Superclass ) ...
-
Hello developers! Hope you are doing well. Many people are coming to application developing, specially in the Android arena. Now, What! Th...
Chiefs vs Falcons
ReplyDeleteChiefs vs Falcons live
nfl game pass
nfl live
live nfl
live nfl on cbs
Lions vs Saints
Lions vs Saints live
nfl game pass
nfl live
live nfl
live nfl on cbs
Rams vs Patriots
Rams vs Patriots live
nfl game pass
nfl live
live nfl
live nfl on cbs
Broncos vs jaguars
Broncos vs jaguars live
nfl game pass
nfl live
live nfl
live nfl on cbs
Texans vs Packers
Texans vs Packers live
nfl game pass
nfl live
live nfl
live nfl on cbs
Eagles vs Bengals
ReplyDeleteEagles vs Bengals live
nfl game pass
nfl live
live nfl
live nfl on cbs
Dolphins vs Ravens
Dolphins vs Ravens live
nfl game pass
nfl live
live nfl
live nfl on cbs
Bills vs Raiders
Bills vs Raiders live
nfl game pass
nfl live
live nfl
live nfl on cbs
49ers vs Bears
49ers vs Bears live
nfl game pass
nfl live
live nfl
live nfl on cbs
Giants vs Steelers
Giants vs Steelers live
nfl game pass
nfl live
live nfl
live nfl on cbs
Redskins VS Cardinals
ReplyDeleteRedskins VS Cardinals live
nfl game pass
nfl live
live nfl
live nfl on cbs
Buccaneers vs Chargers
Buccaneers vs Chargers live
nfl game pass
nfl live
live nfl
live nfl on cbs
Panthers vs Seahawks
Panthers vs Seahawks live
nfl game pass
nfl live
live nfl
live nfl on cbs
As stated by Stanford Medical, It's indeed the ONLY reason this country's women get to live 10 years longer and weigh on average 19 KG lighter than we do.
ReplyDelete(And by the way, it is not related to genetics or some secret exercise and absolutely EVERYTHING around "HOW" they are eating.)
BTW, I said "HOW", not "WHAT"...
TAP this link to uncover if this brief quiz can help you discover your real weight loss potential