Translate

New Live Courses

UpComing SoftWare Training Demos

🚀 *Playwright With AI Testing Demo In Telugu*
🗓️ *Date:* 28 Oct2026, 08:00 PM IST
📝 *Register Now!:*
https://www.vlrt.in/3r
👥 *Join WA Community:*
https://www.vlrt.in/3w
💡 *Course Content:*
https://www.vlrt.in/3c
▶️ *Demo Videos:*
https://www.vlrt.in/3v

🚀 *Gen AI Engineer (Production Focused)*
🗓️ *Date:* 29th Oct 2026, 06:00PM IST
📝 *Register Now!:*
https://www.vlrt.in/gr
👥 *Join WA Community:*
https://www.vlrt.in/gw
💡*Course Content:*
https://www.vlrt.in/ai
▶️ *Demo Videos:*
https://www.vlrt.in/gv

🚀 *Vulnerability Management Training Demo*
🗓️ *Date:* 28th Oct 2026, 10:00 AM IST
📝*Register Now!:*
https://www.vlrt.in/vr
👥 *Join Community:*
https://www.vlrt.in/cw
💡 *Course Content:*
https://www.vlrt.in/vc
▶️ *Demo Videos:*
https://www.vlrt.in/Vm

Tuesday, 5 October 2021

Object Oriented Programming Interface in Groovy Scripting groovy training telugu 39

 Watch This Video

https://youtu.be/lh-VDCkqodc

------------------------------------------------------------------------------------------------

//Person.groovy
package com.therealdanvega.domain
@groovy.transform.ToString()
class Person{

String first, last

}

//IPersonService.groovy
package com.therealdanvega.service

import com.therealdanvega.domain.Person

interface IPersonService{

Person find()
List <People> findAll()

}

//PersonService.groovy
package com.therealdanvega.service
import com.therealdanvega.domain.Person
class PersonService implements IPersonService{
@Override
Person find(){
person p= new Person(first:"Dan",last:"vega")
return p
}

@Override

List <People> findAll(){
person p1= new Person(first:"Dan",last:"vega")
person p2= new Person(first:"jam",last:"vega")
[p1,p2]

}
}

//App.groovy

package com.therealdanvega

import com.therealdanvega.service.PersonService

PersonService ps=new PersonService()
println ps.find()




 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.