Translate

New Live Courses

🚀 *Gen AI Engineer Telugu (Production Focused)*
🗓️ *Date:* 30th Sept 2026, 07:00AM 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

🚀 *Service now Admin/ Development (ITSM)FREE Demo in Telugu*
🗓️ *Date:* 30th Sept 2026, 08:00AM IST
📝 *Register Now!:*
https://www.vlrt.in/7r
👥 *Join WA Community:*
https://www.vlrt.in/7w
💡*Course Content:*
https://www.vlrt.in/7c
▶️ *Demo Videos:*
https://www.vlrt.in/7v

🚀 *Vulnerability Management Training Demo*
🗓️ *Date:* 30th Sept 2026, 09: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

Showing posts with label Groovy 35. Show all posts
Showing posts with label Groovy 35. Show all posts

Tuesday, 5 October 2021

Object Oriented Programming Classes Fields Local Variables in groovy Scripting groovy training telugu 35

 Watch This Video

https://youtu.be/A9mtl7GDZXU


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


class Person{
String firstName,lastName
def dob
//private |  protected |public
protected String f1,f2,f3
private Date createdOn= new Date()


static welcomeMsg="Hello"

public static final String WELCOME_MSG="HELLO"

}
//LOCAL VARIABLES
def foo(){
String msg ="Hello"
String firstName="Dan"
println"$msg, $firstName"
}
}

def Person =new Person()

println Person.foo()