Learn Java Programming - Introduction to the Abstract Modifier

preview_player
Показать описание
The topic of the abstract modifier is especially confusing when learning object-oriented programming. There are many rules to memorize for the proper use of the abstract modifier. Instead of just making a giant list of the rules, I am going to spread abstract methods and classes over several tutorials.
I am going to quickly introduce you to the concept of IS-A and HAS-A; they literally mean "is a" and "has a" and they will simplify your life. Let's play a little game where you compare the relationship of two objects by placing "is a" and "has a" between them and you pick the combination that sounds right.
Рекомендации по теме
Комментарии
Автор

I can’t believe that i have watched some videos on abstract and still have had problem what is the reason behind using abstract but just this video and the following sentece have med my life today, thank you much! You are by far the best you are amazing! Thank you sooo much: Airplanes can take off in many different ways, so we need an abstract method!

thestarinthesky_
Автор

Hi Dan, thanks so much for this awesome java course, so far have covered all topics from the beginning up to intro to Abstract Modifier and i'm proceeding up to the end.

brynz
Автор

Thanks very nice explanation.
I have a doubt, Is there any way to initialize object for a class have which can use multiple constructor at the same time
for example .
class A{
String name;
String fname, lname;

A(String name){
this.name = name;
}
A(String first_name, String last_name){
this.fname = first_name;
this.lname = last_name;}
}

public class Details{
public static void main(String []args){
A obj = new A("Steven Hawthrone");
obj.anyway("Steven", "Hawthrone"); // how can call 2nd type of constructor with same obj object?
}
}

piyushohri
join shbcf.ru