Комментарии:
No need of thorough understanding
But need to know this kind things are there
Do self learning also in google
After 1 or two projects you will get familiar with all features
Best accomplished
Ответитьsir nan vs codil java program run cheyumbol error canni kunu but ath nandebug cheyumbol work aakunu
ОтветитьINTERFACE
class no:1
public interface Hello {
void display(String text);
}
---------------------------------------------------------------------------------------------
class no:2
public class TextScanner {
Hello obj;
TextScanner(Hello obj){
this.obj=obj;
}
void Scan() {
//api code//
String text="interface program";
obj.display(text);
}
}
----------------------------------------------------------------------------------------------
class no:3(MAIN)
class Sample implements Hello {
public void display(String text) {
System.out.println(text);
}
Sample(){
TextScanner ts=new TextScanner(this);
ts.Scan();
}
public static void main(String[] args) {
Sample s=new Sample();
}
}-----------------THE END--------------
interface Class
public interface hello {
public void onText();
public void message();
}
2nd class
public class textScanner implements hello {
public void onText() {
System.out.println("this is onText sample");
}
public void message() {
System.out.println("this is anothere message");
}
}
mainClass
public class mainClass {
public static void main(String[] args) {
//create object for textScanner
textScanner ts=new textScanner();
//using intrerface method
ts.message();
ts.onText();
}
}
in abstraction , abstract classnu obj undakkan pattilla enn paranj then how Hello obj; in textscanner
Ответить(B a)
a.display();
Aano varua
Poli class🎉
ОтветитьIth angot manasilavunilallo please ithonn clear cheyth tharamo @brototype
ОтветитьI don't understand abstract can you explain in a more simpler way 😁
ОтветитьInterface explain cheyunna video cheyyamo
ОтветитьHello obj; enthaannn??? Abstract clasnn object create cheyyaan patillalooo
Ответитьsuperb
ОтветитьSIR SHORT VIDEOS SENT CHEYYAVO
ОтветитьConstructirinu mump public koduthath enthina
ОтветитьAbstract class manassilakathavarkk.... Kurachu perude doubts kandu, Abstract class aaya Hello kk object indakkan kazhiyillaaloo.... Pinnenganeyaa TextScanner enna classil Hello obj; cheythathu ennu.
Enikk manassil aayathu parayaam. Abstract classinu object indakkan kazhiyilla. But object declare chyyan kazhiyum. Ath initialize cheyyan kazhiyilla. Eg:- Hello oru abstract class aahnenkil Hello obj; ingane object declare cheyyaam. But Hello obj = new Hello(); ingane initialize cheyyumbol error varum. Ivide namukk hello il ninn oru abstract methodilekk value assign cheyyenda aavishyam indu. Normally nokkumbol ath possible alla. But, athine inherite cheytha classil ninnum call cheyyan saadhikkum. Athinu, Main (Sample) classil ninnum TextScanner enna classinu object create cheyyumbol athinte constructorilekk Main classinte object (this) pass cheyyunnund. Appol TextScanner enna classil athinte constructor codeil nerathe Hello yude object declare cheyth vechillee... Athilekk ee Main classinte object assign cheyyunnu. Aadyam Hello obj; ingne veruthe declare cheythu vechu. Athinu shesham constructor codeil athilekk kittunna objectine declare cheytha objectilekk assign cheythu. this.obj=obj; ithil 'this.obj' nerathee declare cheytha global object aanu. Athilekk constructorilekk varunna object ne assign cheyyunnathaanu = obj;
Manassilaayo😊
Ith enthinanu cheyyunnath enn vechaal, TextScanner enna classil ninnum direct aayitt Hello yude classile method neyoo variablesneyoo call cheyyaano values assign cheyyaano kazhiyilla. Appol athine inherite cheytha classil ninnum avaye call cheyyanum values assign cheyyanum kazhiyum. Kaaranam Hello classinte oru copy inherite cheytha classileko varum. Athinaanu Main classil Hello ne inherite cheythitt Main classinte objectine TextScanner classilekk pass cheythath.
Main classil constructor ne create cheyyathe thanne Main classinte object TectScanner lekku pass cheyyan kazhiyum. Athinu main method nte ullil thanne Main classinte object create cheythitt ath pass cheythal mathi. Eg:-
Main mainObj = new Main();
TextScanner ts = new TextScanner(mainObj);
Ingane cheyyumbol Main classinte object pass cheyyeem cheyyam, error um indavula, code um run aavum.
Sample file :- (Main class)
public class Main extends BaseClass
{
public static void main(String ar[])
{
Main mainObj = new Main();
TextScanner ts = new TextScanner(mainObj);
ts.scan();
}
@Override
void onText(String text)
{
System.out.println(text);
}
}
(BaseClass - abstract class aanu)
Enthelum mistake/error indenkil parayaneee 😁😅
Thank you sir
Ответитьsir interface video upload cheyyuvoo.....
ОтветитьI watched that abstraction portion 3 times then i just got it.. 🔥i feel very very happy... Thankue from my heart sir ❣️
Ответить🎉
Ответитьcould you convey more details about abstraction?
ОтветитьWatnted abstraction vedio
ОтветитьSir Abstract class onnum koodi cheyyan pattuo?
ОтветитьSir orupaad kalaam ayi ee channelinety oro videoikuk vannu coment chetiney.. Please make a videos for testers also.. Automation testers also equal to a dev nowdays please consider and make. Videos for testers🥹🥹🥹
ОтветитьInterface Program
public interface Hello {
public void onText(String text);
}
public class TextScanner {
Hello obj;
public TextScanner(Hello obj) {
this.obj=obj;
}
void Scan() {
String text="Scanned Text";
obj.onText(text);
}
}
public class Sample implements Hello {
public void onText(String text) {
System.out.println(text);
}
Sample(){
TextScanner ts=new TextScanner(this);
ts.Scan();
}
public static void main(String[] args) {
Sample s=new Sample();
}
}
Sample classil Hello class nte object create cheyyumbol enthaan
*Hello obj=new Hello (); *
enn kodukkathath??abstract ayathukondanoo verum
*Hello obj; *
enn koduthath?
Can anyone tell me why i can't use public class
Ответитьabstract manassilavaan 3 times kanannam
ОтветитьThank you sir
ОтветитьSuper
ОтветитьSample () cinstructor crete chyth main method il obj um create chyth but sample il testscanner ts= new testscanner(this) pass chytel error kanikunn. main il angine chyan pattilla enn paranjallo. So sample constr vach chytapozhum error varunn.athenth angine onn paranj taramo
ОтветитьINTERFACE
public interface S {
public void show();
}
public interface A {
public void cross();
}
public class Showable implements S, A {
public void show() {
System.out.println("twinkle");
}
public void cross() {
System.out.println("star");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Showable obj=new Showable();
obj.show();
obj.cross();
}
}
Thank u adhayam kettaram sir enthallan paryunne vijarchu 2,3 pravishyam kandappoll manasilayi nth detail aayi sir karyam paryunnath enn
ОтветитьInterface
interface class:
public interface Hello {
abstract void onText(String text);
}
Definition Class:
public class TextScanner {
Hello obj;
public TextScanner(Hello obj){
this.obj=obj;
}
void scan(){
String text="Scanned Text":
obj.onText(text);
}
}
Implements Class/ Subclass:
public Sample implements Hello(){
abstract void onText(String text)
System.out.println(text);
public Sample(){
TextScanner ts=new TextScanner(this){
ts.scan();
}
public static void main(String ar[]){
Sample s=new Sample();
}
Sir abtrct class onnum manasilaakunnilla saprate video venam😥 plese
Ответитьsososososoososo sisisiisisisisisiissiissmpleeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
ОтветитьAbstract il textscanner Enna classil hello obj; enn call cheyun und Ath mannasalayilla karnnam Hello oru abstract class alley (hello obj; Hello Enna classnne object calling ano)
ОтветитьNinth Video Completed ✅
Ответитьabstraction is gonna be really hard guys:(
ОтветитьException enthuvaa dont get idea🥲
ОтветитьHi Sir,
I came to know about this channel recently… Great classes and i am an aspirant thoroughly following and started to learn from your online classes
Could you please make another video on abstract class…
Thanks
string or character userntennu input akanum padipikarnnu
Ответитьabstract concept ithre nannayit vere video il kanditilla❤💥
Ответитьpublic interface Restricted {
public void ontext(String name);
public void scantext();
}
public class TextScanner {
Restricted obj;
TextScanner(Restricted obj){
this.obj=obj;
}
public void call_interface(String name) {
obj.ontext(name);
obj.scantext();
}
}
public class Main implements Restricted{
String name;
Main(String name){
this.name=name;
TextScanner txtscn=new TextScanner(this);
txtscn.call_interface(name);
}
public static void main(String[] args) {
Main mn=new Main("The names");
}
public void ontext() {
System.out.println("The text contains " + name);
}public void scantext() {
System.out.println("The Text has been scanned successfully !!");
}
}
Abstract manasilathavar ath 2 ,3 thavana kandaal mathi..Koode ath cheyth koodi nokkiyaal crct aayi manasilavum..Enikum ith aadhyam onnum manasilayilla njan 3 thavana kandathinu shesham aanu enik manasilaayath
Ответить