Reusability Tutorial -03 In OOPS Association(HAS-A) and Inheritance(IS-A) In Hindi
2,472 views · Published 4 March 2018 · 10:19 · Indexed 6 November 2026
Channel: AndroJavaTech4U · 2018 · Science & Technology
In this video I am going to discuss about Re usability In OOPS Via Association(HAS-A) and Inheritance(IS-A).
Stay tuned with me for more upcoming Videos,
don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺
Resubality
1)-Associatation(HAS-A)[0 to 100%]
-
a)-compositation(Strong)
b)-Aggregation(Week)
2)-Inheritance(Is-A)[100%]
Vechicle
Car Bike
(Engine,MusicSystem)
class A
{
int x=10;
}
class B
{
A a=new A();
}
program-
class Heart
{
Heart()
{
System.out.println("Heart is Strong.....");
}
}
class Hair
{
void hair()
{
System.out.println("Hair is wekkkk...");
}
}
class Hand
{
void hand()
{
System.out.println(" Hand is wekkkk...");
}
}
class Brain
{
Brain()
{
System.out.println("Brain is Strong...");
}
}
class Human
{
Brain br;//Aggregation
Hand hd;
Hair ha;
Heart ht;
Human()
{
new Brain();//comosition
new Hand();
ha=new Hair();//Association
new Heart();
}
public static void main(String ssp[])
{
Human h=new Human();
h.ha.hair();//OGNL
}
}
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
Firebase Tutorial No-6 URl-
https://www.youtube.com/watch?v=5IWBz...
Firebase Tutorial No-1 URl-
https://www.youtube.com/watch?v=gf0VQ...
Firebase Tutorial No-2 URl-
https://www.youtube.com/watch?v=srgAL...
Firebase Tutorial No-3 URl-
https://www.youtube.com/watch?v=TW0uO...
Firebase Tutorial No-4 URl-
https://www.youtube.com/watch?v=XXxRA...
Write program url using Firebase Database-
https://www.dropbox.com/s/wxggu30ajqa...
Sqlite database tutorials part-1 url-
https://www.youtube.com/watch?v=6a9lI...
Sqlite database tutorials part-2 url-
https://www.youtube.com/watch?v=h1Peq...
Storage option url-
https://www.youtube.com/watch?v=KgCfx...
Internal Storage url-
https://www.youtube.com/watch?v=O-VKJ...
External Storage url-
https://www.youtube.com/watch?v=EteGm...
Shared Prefrences url-
https://www.youtube.com/watch?v=KZJC2...
Spinner Url-
https://www.youtube.com/watch?v=o3KZz...
CustomListView Url-
https://www.youtube.com/watch?v=2geTp...
ListView In Android Studio Part-1
https://www.youtube.com/watch?v=taItn...
ListView In Android Studio Part-1
ListView In Android Studio Part-2 With EventHandling
https://www.youtube.com/watch?v=F3tsW...
ListView In Android Studio Part-3 With EventHandling
https://www.youtube.com/watch?v=fCh5D...
Firebase:-
https://www.youtube.com/watch?v=Lncmj...
How to Install Java Url-
https://www.youtube.com/watch?v=NXlHE...
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
GridLayout url-
https://www.youtube.com/watch?v=B3TUS...
TableLayout url-
https://www.youtube.com/watch?v=wbV3t...
RelativeLayout-
https://www.youtube.com/watch?v=80Kk_...
https://www.youtube.com/watch?v=1jnNF...
Linearlayout-
https://www.youtube.com/watch?v=yY3xL...
https://www.youtube.com/watch?v=vnEdL...
Connect on Socials:-
Facebook:- https://www.facebook.com/AndroJavaTec...
Twitter:- https://twitter.com/AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:- https://www.linkedin.com/in/androjava...
More from this channel
-
18:08
Platform Independency Features of Java In Hindi #1
-
4:42
VMware Workstation Install With RedHat
-
8:35
Difference Between Program and Process
-
2:51
jconsole tool of java
-
5:38
JVM ( java virtual machine) architecture - tutorial
-
4:30
Java Fundamentals In Hindi #2 (Keyword In Java)
-
2:26
Working On WebLogic Server 12C In Hindi #2
-
21:59
Login and Registration Part1